forked from DRMTalks/devine
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:
parent
cbd796463d
commit
4f1d94dd7b
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue