Support HLS's EXT-X-KEY NONE

If EXT-X-KEY of Method=NONE is encountered, it assumes no DRM should be used, even if other supported DRM may have already been or is going to be iterated.
This commit is contained in:
rlaphoenix 2023-02-21 01:24:04 +00:00
parent 7025b5cef3
commit c3f2d0d9cc
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,8 @@ class HLS:
if not key:
continue
# TODO: Add checks for Merlin, FairPlay, PlayReady, maybe more.
if key.method == "NONE":
return []
if key.method == "AES-128":
drm.append(ClearKey.from_m3u_key(key))
elif key.method == "ISO-23001-7":