mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-12-02 16:14:15 +01:00
svtplay: support for codecs
This commit is contained in:
parent
0a201259d8
commit
74ef2a709f
@ -103,11 +103,11 @@ class Svtplay(Service, MetadataThumbMixin):
|
|||||||
if "alt" in query and len(query["alt"]) > 0:
|
if "alt" in query and len(query["alt"]) > 0:
|
||||||
alt = self.http.get(query["alt"][0])
|
alt = self.http.get(query["alt"][0])
|
||||||
|
|
||||||
if i["format"] == "hls":
|
if i["format"][:3] == "hls":
|
||||||
streams = hlsparse(self.config, self.http.request("get", i["url"]), i["url"], output=self.output)
|
streams = hlsparse(self.config, self.http.request("get", i["url"]), i["url"], output=self.output)
|
||||||
if alt:
|
if alt:
|
||||||
alt_streams = hlsparse(self.config, self.http.request("get", alt.request.url), alt.request.url, output=self.output)
|
alt_streams = hlsparse(self.config, self.http.request("get", alt.request.url), alt.request.url, output=self.output)
|
||||||
elif i["format"] == "dash264" or i["format"] == "dashhbbtv":
|
elif i["format"][:4] == "dash":
|
||||||
streams = dashparse(self.config, self.http.request("get", i["url"]), i["url"], output=self.output)
|
streams = dashparse(self.config, self.http.request("get", i["url"]), i["url"], output=self.output)
|
||||||
if alt:
|
if alt:
|
||||||
alt_streams = dashparse(self.config, self.http.request("get", alt.request.url), alt.request.url, output=self.output)
|
alt_streams = dashparse(self.config, self.http.request("get", alt.request.url), alt.request.url, output=self.output)
|
||||||
@ -127,7 +127,10 @@ class Svtplay(Service, MetadataThumbMixin):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if esceni:
|
if esceni:
|
||||||
|
try:
|
||||||
return janson["ROOT_QUERY"][esceni][0]["id"]
|
return janson["ROOT_QUERY"][esceni][0]["id"]
|
||||||
|
except IndexError:
|
||||||
|
return None
|
||||||
else:
|
else:
|
||||||
return esceni
|
return esceni
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user