fix(hls): keep PlayReady session-data keys by matching the URN string

This commit is contained in:
imSp4rky
2026-10-20 20:05:03 -06:00
parent 96d6a4f1b2
commit 012bf45270
2 changed files with 116 additions and 2 deletions
+1 -2
View File
@@ -22,7 +22,6 @@ import m3u8
import requests
from langcodes import Language, tag_is_valid
from m3u8 import M3U8
from pyplayready.cdm import Cdm as PlayReadyCdm
from pyplayready.system.pssh import PSSH as PR_PSSH
from pywidevine.cdm import Cdm as WidevineCdm
from pywidevine.pssh import PSSH as WV_PSSH
@@ -1399,7 +1398,7 @@ class HLS:
and key.keyformat.lower()
in {
WidevineCdm.urn,
PlayReadyCdm,
f"urn:uuid:{PR_PSSH.SYSTEM_ID}",
"com.microsoft.playready",
}
):