diff --git a/unshackle/core/drm/playready.py b/unshackle/core/drm/playready.py index 0e97adae..479b6576 100644 --- a/unshackle/core/drm/playready.py +++ b/unshackle/core/drm/playready.py @@ -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: