feat(PR): Add session ID return

This commit is contained in:
CodeName393
2026-11-02 08:47:37 -07:00
committed by imSp4rky
parent 1a7192380d
commit 962e47ac6b
+5 -2
View File
@@ -492,9 +492,12 @@ class PlayReady:
kid_count=len(required_kids),
)
try:
license_res = licence(challenge=challenge, pssh_b64=pssh_b64)
license_res = licence(challenge=challenge, pssh_b64=pssh_b64, session_id=session_id)
except TypeError:
license_res = licence(challenge=challenge)
try:
license_res = licence(challenge=challenge, pssh_b64=pssh_b64)
except TypeError:
license_res = licence(challenge=challenge)
if isinstance(license_res, bytes):
license_str = license_res.decode(errors="ignore")
else: