No longer pass the track through track events

If you are setting a callable onto a track event, then you have access to the track variable, so just include/use that in your lambda/callable.
This commit is contained in:
rlaphoenix
2024-02-10 17:47:12 +00:00
parent 7be24a130d
commit 439e376b38
4 changed files with 9 additions and 9 deletions

View File

@@ -507,7 +507,7 @@ class DASH:
drm.decrypt(save_path)
track.drm = None
if callable(track.OnDecrypted):
track.OnDecrypted(track)
track.OnDecrypted()
progress(downloaded="Decrypted", completed=100)
track.path = save_path

View File

@@ -511,7 +511,7 @@ class HLS:
newest_segment_key[0].decrypt(out_path)
track.drm = None
if callable(track.OnDecrypted):
track.OnDecrypted(track)
track.OnDecrypted()
return download_size