From 7025b5cef344fd64ce5580af3270e36acc03de37 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Tue, 21 Feb 2023 01:21:28 +0000 Subject: [PATCH] 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. --- devine/core/manifests/hls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index 52af20f..73578af 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -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)))