forked from DRMTalks/devine
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:
parent
88a5bc8ad5
commit
7025b5cef3
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue