From 8f33c450bc7129eba68b7c23d0c2a383c515b541 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 29 Oct 2015 18:20:17 +0100 Subject: [PATCH] bigbrother: support for progressive download --- lib/svtplay_dl/service/bigbrother.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/svtplay_dl/service/bigbrother.py b/lib/svtplay_dl/service/bigbrother.py index e47b0fb..1bb0dec 100644 --- a/lib/svtplay_dl/service/bigbrother.py +++ b/lib/svtplay_dl/service/bigbrother.py @@ -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) \ No newline at end of file