I'll give it a go - thanks!
-Gabe
On Aug 3, 7:07 pm, Ludo Antonov <
ludo.anto...@gmail.com> wrote:
> Hi Gabe,
>
> yes it is definitely possible to do this. Though a few lines of code need to be written.
>
> The way to achieve is by extending conf/data.py (
https://github.com/hulu/dripls/blob/master/dripls/conf/data.py) . Basically when you make the request to DripLS, the service will call :
>
> def pull_master_m3u8(self, cid, kwargs):
>
> and will let you do the extra steps that are needed ( authentication, decryption, etc) to fetch the master m3u8 playlist from a content source. Note that the GET params of the DripLS request are also passed to the function. This is so that you can specify extra parameters that your backend service understands ( this might include fallback cdns, preferred bit-rate, etc). An original request like (
http://dripls-host/master.m3u8?authkey=sample&cid=wt&r=650k.s0~e404) can be transformed to contain extra params that pull_master_m3u8 will grab and use for the fetching of the master m3u8 playlist from the HLS backend service. For example (
http://dripls-host/master.m3u8?authkey=sample&cid=wt&r=650k.s0~e404&c...). Of course you'd need to implement the processing of these extra params.