From da7acb041765e2b072c5000d47e3ad1f0e2d5016 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 8 Mar 2023 22:42:25 +0000 Subject: [PATCH] Specify URL Track Key IDs to prepare_drm --- devine/commands/dl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 5fd011e..758aeb9 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -798,12 +798,13 @@ class dl: self.log.warning("No Widevine PSSH was found for this track, is it DRM free?") if track.drm: + track_kid = track.get_key_id(session=service.session) drm = track.drm[0] # just use the first supported DRM system for now if isinstance(drm, Widevine): # license and grab content keys if not prepare_drm: raise ValueError("prepare_drm func must be supplied to use Widevine DRM") - prepare_drm(drm) + prepare_drm(drm, track_kid=track_kid) else: drm = None