Replace download speeds with "Downloaded" text when finished

This commit is contained in:
rlaphoenix 2023-05-16 21:59:03 +01:00
parent 2a8307b98d
commit a45c784569
3 changed files with 6 additions and 0 deletions

View File

@ -915,6 +915,8 @@ class dl:
track.path = save_path
progress(downloaded="Downloaded")
if drm:
drm.decrypt(save_path)
track.drm = None

View File

@ -519,6 +519,8 @@ class DASH:
f.write(segment_file.read_bytes())
segment_file.unlink()
progress(downloaded="Downloaded")
if drm:
# TODO: What if the manifest does not mention DRM, but has DRM
drm.decrypt(save_path)

View File

@ -427,6 +427,8 @@ class HLS:
f.write(segment_file.read_bytes())
segment_file.unlink()
progress(downloaded="Downloaded")
track.path = save_path
save_dir.rmdir()