1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

svtplay: detect hls streams in a better way

This commit is contained in:
Johan Andersson 2021-07-24 01:26:36 +02:00
parent 52d98a8934
commit c8a5cae060

View File

@ -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)