From c3f2d0d9ccef520894aad5552c8cc8fd39aad11c Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Tue, 21 Feb 2023 01:24:04 +0000 Subject: [PATCH] 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. --- devine/core/manifests/hls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index 73578af..1807354 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -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":