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

m3u8: dont set encrypted stream with no URI

This commit is contained in:
Johan Andersson 2023-06-01 20:37:07 +02:00
parent 6d2a02c756
commit 9387fe6c2c

View File

@ -92,6 +92,8 @@ class M3U8:
elif tag == "EXT-X-KEY": elif tag == "EXT-X-KEY":
self.encrypted = True self.encrypted = True
info = _get_tuple_attribute(attr) info = _get_tuple_attribute(attr)
if "URI" not in info:
self.encrypted = False
# 4.3.2.5. EXT-X-MAP # 4.3.2.5. EXT-X-MAP
elif tag == "EXT-X-MAP": elif tag == "EXT-X-MAP":