From f90eaff39b9bc634fee0cfa74aec82d1b15ed4e2 Mon Sep 17 00:00:00 2001 From: chu23465 <130033130+chu23465@users.noreply.github.com> Date: Sat, 12 Apr 2025 23:18:27 +0530 Subject: [PATCH] License decode fix --- vinetrimmer/commands/dl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vinetrimmer/commands/dl.py b/vinetrimmer/commands/dl.py index effe7bd..e1ec8af 100644 --- a/vinetrimmer/commands/dl.py +++ b/vinetrimmer/commands/dl.py @@ -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.