mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
svtplay: detect hls streams in a better way
This commit is contained in:
parent
52d98a8934
commit
c8a5cae060
@ -106,7 +106,7 @@ class Svtplay(Service, MetadataThumbMixin):
|
||||
return
|
||||
|
||||
for i in janson["videoReferences"]:
|
||||
if i["url"].find(".m3u8") > 0 and (i["format"] == "hls-cmaf-full" or i["format"] == "hls-cmaf-live"):
|
||||
if i["url"].find(".m3u8") > 0 and "hls-cmaf" in i["format"]:
|
||||
yield from hlsparse(self.config, self.http.request("get", i["url"]), i["url"], self.output)
|
||||
elif i["url"].find(".mpd") > 0:
|
||||
yield from dashparse(self.config, self.http.request("get", i["url"]), i["url"], output=self.output)
|
||||
|
Loading…
Reference in New Issue
Block a user