From ce457df151b3d30abb9ee1d95a7e19a6ae4bd9e8 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Tue, 9 Jan 2024 11:38:58 +0000 Subject: [PATCH] Change wording from Download Stopped to Download Cancelled --- devine/commands/dl.py | 2 +- devine/core/manifests/dash.py | 4 ++-- devine/core/manifests/hls.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 77373e1..32cea3f 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -949,7 +949,7 @@ class dl: progress(downloaded="Downloaded") except KeyboardInterrupt: self.DL_POOL_STOP.set() - progress(downloaded="[yellow]STOPPED") + progress(downloaded="[yellow]CANCELLED") raise except Exception: self.DL_POOL_STOP.set() diff --git a/devine/core/manifests/dash.py b/devine/core/manifests/dash.py index a4a0be9..b0e1f08 100644 --- a/devine/core/manifests/dash.py +++ b/devine/core/manifests/dash.py @@ -436,9 +436,9 @@ class DASH: download_size = download.result() except KeyboardInterrupt: stop_event.set() # skip pending track downloads - progress(downloaded="[yellow]STOPPING") + progress(downloaded="[yellow]CANCELLING") pool.shutdown(wait=True, cancel_futures=True) - progress(downloaded="[yellow]STOPPED") + progress(downloaded="[yellow]CANCELLED") # tell dl that it was cancelled # the pool is already shut down, so exiting loop is fine raise diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index 5e060ca..93060f5 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -275,9 +275,9 @@ class HLS: download_size = download.result() except KeyboardInterrupt: stop_event.set() # skip pending track downloads - progress(downloaded="[yellow]STOPPING") + progress(downloaded="[yellow]CANCELLING") pool.shutdown(wait=True, cancel_futures=True) - progress(downloaded="[yellow]STOPPED") + progress(downloaded="[yellow]CANCELLED") # tell dl that it was cancelled # the pool is already shut down, so exiting loop is fine raise