From 4f1d94dd7ba380734b9af37d8f11cf608f281439 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 8 Mar 2023 20:43:25 +0000 Subject: [PATCH] Remove list unpack from Widevine's from_track for HLS tracks This isn't actually necessary. Likely hasn't been necessary since either v1.0.0, or v1.2.0. --- devine/core/drm/widevine.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/devine/core/drm/widevine.py b/devine/core/drm/widevine.py index 98752f1..aeb0a84 100644 --- a/devine/core/drm/widevine.py +++ b/devine/core/drm/widevine.py @@ -80,11 +80,6 @@ class Widevine: if track.descriptor == track.Descriptor.M3U: m3u_url = track.url - if isinstance(m3u_url, list): - # TODO: Find out why exactly the track url could be a list in this - # scenario, as if its a list of segments, they would be files - # not m3u documents - m3u_url = m3u_url[0] master = m3u8.loads(session.get(m3u_url).text, uri=m3u_url) pssh_boxes.extend( Box.parse(base64.b64decode(x.uri.split(",")[-1]))