From 7587243aa20e01c4067f194cf2d22228793e7221 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 16 Feb 2024 16:48:38 +0000 Subject: [PATCH] HLS: Don't decrypt on key change if there were no prior segments --- 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 b384a2f..a87d58b 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -414,7 +414,7 @@ class HLS: if segment.keys: key = HLS.get_supported_key(segment.keys) - if encryption_data and encryption_data[1] != key: + if encryption_data and encryption_data[1] != key and i != 0: decrypt(include_this_segment=False) if key is None: