From d1ee50466b766f73343534a96d881ce5d59bb578 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 6 Nov 2016 12:50:25 +0100 Subject: [PATCH] svtplay: use the same dash condition for all dash versions --- lib/svtplay_dl/service/svtplay.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index d93b5d8..71bb1e2 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -110,20 +110,7 @@ class Svtplay(Service, OpenGraphThumbMixin): if streams: for n in list(streams.keys()): yield streams[n] - if i["format"] == "dash264": - streams = dashparse(self.options, self.http.request("get", i["url"]), i["url"]) - if streams: - for n in list(streams.keys()): - yield streams[n] - - if "alt" in query and len(query["alt"]) > 0: - alt = self.http.get(query["alt"][0]) - streams = dashparse(self.options, self.http.request("get", alt.request.url), alt.request.url) - if streams: - for n in list(streams.keys()): - yield streams[n] - - if i["format"] == "dashhbbtv": + if i["format"] == "dash264" or i["format"] == "dashhbbtv": streams = dashparse(self.options, self.http.request("get", i["url"]), i["url"]) if streams: for n in list(streams.keys()):