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.
This commit is contained in:
rlaphoenix 2023-03-08 20:43:25 +00:00
parent cbd796463d
commit 4f1d94dd7b
1 changed files with 0 additions and 5 deletions

View File

@ -80,11 +80,6 @@ class Widevine:
if track.descriptor == track.Descriptor.M3U: if track.descriptor == track.Descriptor.M3U:
m3u_url = track.url 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) master = m3u8.loads(session.get(m3u_url).text, uri=m3u_url)
pssh_boxes.extend( pssh_boxes.extend(
Box.parse(base64.b64decode(x.uri.split(",")[-1])) Box.parse(base64.b64decode(x.uri.split(",")[-1]))