mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: use the same dash condition for all dash versions
This commit is contained in:
parent
41e5d8ef31
commit
d1ee50466b
@ -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()):
|
||||
|
Loading…
Reference in New Issue
Block a user