From a45c784569e59dc3815fd2f162b05f2a6ca7141c Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Tue, 16 May 2023 21:59:03 +0100 Subject: [PATCH] Replace download speeds with "Downloaded" text when finished --- devine/commands/dl.py | 2 ++ devine/core/manifests/dash.py | 2 ++ devine/core/manifests/hls.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index b1d515a..5341ca7 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -915,6 +915,8 @@ class dl: track.path = save_path + progress(downloaded="Downloaded") + if drm: drm.decrypt(save_path) track.drm = None diff --git a/devine/core/manifests/dash.py b/devine/core/manifests/dash.py index d192cc6..27e2174 100644 --- a/devine/core/manifests/dash.py +++ b/devine/core/manifests/dash.py @@ -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) diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index ceb8f1a..cb420f9 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -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()