mirror of https://github.com/devine-dl/devine.git
Fix URL used on final chance to get Track KID on DASH downloads
segments[0] is the first tuple, of two values. The URL and an optional byte range. So this accidentally passed the tuple rather than the URL within the tuple. Fixes #54
This commit is contained in:
parent
1668647e4d
commit
5ca2f256d5
|
@ -448,8 +448,8 @@ class DASH:
|
|||
log.warning("No Widevine PSSH was found for this track, is it DRM free?")
|
||||
|
||||
if track.drm:
|
||||
# last chance to find the KID
|
||||
track_kid = track_kid or track.get_key_id(url=segments[0], session=session)
|
||||
# last chance to find the KID, assumes first segment will hold the init data
|
||||
track_kid = track_kid or track.get_key_id(url=segments[0][0], session=session)
|
||||
# license and grab content keys
|
||||
drm = track.drm[0] # just use the first supported DRM system for now
|
||||
if isinstance(drm, Widevine):
|
||||
|
|
Loading…
Reference in New Issue