From c8a5cae060b31c9a099afcca2d9ff39acb29d913 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 24 Jul 2021 01:26:36 +0200 Subject: [PATCH] svtplay: detect hls streams in a better way --- lib/svtplay_dl/service/svtplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index 50200b7..9d6839e 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -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)