forked from DRMTalks/devine
Fix regression of missing track.path on URL downloads
This commit is contained in:
parent
d8ae543d63
commit
fc19358de4
|
@ -630,6 +630,7 @@ class dl:
|
||||||
service.session.headers,
|
service.session.headers,
|
||||||
proxy if track.needs_proxy else None
|
proxy if track.needs_proxy else None
|
||||||
))
|
))
|
||||||
|
track.path = save_path
|
||||||
|
|
||||||
if not track.drm and isinstance(track, (Video, Audio)):
|
if not track.drm and isinstance(track, (Video, Audio)):
|
||||||
try:
|
try:
|
||||||
|
@ -645,7 +646,6 @@ class dl:
|
||||||
prepare_drm(drm)
|
prepare_drm(drm)
|
||||||
drm.decrypt(save_path)
|
drm.decrypt(save_path)
|
||||||
track.drm = None
|
track.drm = None
|
||||||
track.path = save_path
|
|
||||||
if callable(track.OnDecrypted):
|
if callable(track.OnDecrypted):
|
||||||
track.OnDecrypted(track)
|
track.OnDecrypted(track)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue