Only convert AES-128 EXT-X-KEYs to ClearKey objects

There's other AES methods like AES-CBC and such that is not currently supported by the ClearKey DRM class.
This commit is contained in:
rlaphoenix 2023-02-21 01:21:28 +00:00
parent 88a5bc8ad5
commit 7025b5cef3
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class HLS:
if not key:
continue
# TODO: Add checks for Merlin, FairPlay, PlayReady, maybe more.
if key.method.startswith("AES"):
if key.method == "AES-128":
drm.append(ClearKey.from_m3u_key(key))
elif key.method == "ISO-23001-7":
drm.append(Widevine(PSSH.new(key_ids=[key.uri.split(",")[-1]], system_id=PSSH.SystemId.Widevine)))