License decode fix

This commit is contained in:
chu23465 2025-04-12 23:18:27 +05:30
parent 5290850dc6
commit f90eaff39b

View File

@ -542,6 +542,10 @@ def result(ctx, service, quality, closest_resolution, range_, wanted, alang, sla
track=track,
)
assert license
if isinstance(license, bytes):
license = license.decode("utf-8")
ctx.obj.cdm.parse_license(
session_id,
license # expects the XML License not base64 encoded str.