License decode fix
This commit is contained in:
parent
5290850dc6
commit
f90eaff39b
@ -542,6 +542,10 @@ def result(ctx, service, quality, closest_resolution, range_, wanted, alang, sla
|
|||||||
track=track,
|
track=track,
|
||||||
)
|
)
|
||||||
assert license
|
assert license
|
||||||
|
|
||||||
|
if isinstance(license, bytes):
|
||||||
|
license = license.decode("utf-8")
|
||||||
|
|
||||||
ctx.obj.cdm.parse_license(
|
ctx.obj.cdm.parse_license(
|
||||||
session_id,
|
session_id,
|
||||||
license # expects the XML License not base64 encoded str.
|
license # expects the XML License not base64 encoded str.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user