1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

bigbrother: support for progressive download

This commit is contained in:
Johan Andersson 2015-10-29 18:20:17 +01:00
parent cfbb068474
commit 8f33c450bc

View File

@ -9,6 +9,7 @@ from svtplay_dl.service import Service, OpenGraphThumbMixin
from svtplay_dl.error import ServiceError
from svtplay_dl.fetcher.hds import hdsparse
from svtplay_dl.fetcher.hls import hlsparse
from svtplay_dl.fetcher.http import HTTP
class Bigbrother(Service, OpenGraphThumbMixin):
@ -64,3 +65,6 @@ class Bigbrother(Service, OpenGraphThumbMixin):
streams = hlsparse(options, self.http.request("get", i["defaultURL"]), i["defaultURL"])
for n in list(streams.keys()):
yield streams[n]
if i["defaultURL"].endswith("mp4"):
yield HTTP(copy.copy(options), i["defaultURL"], i["encodingRate"]/1024)