✨ Downloads can be now paused / resumed. Fixes #149 & 324

👷 Shutdown is handled more gracefully.
This commit is contained in:
Robert Honz
2025-03-03 09:31:37 +01:00
parent 2aff7c920e
commit 0684994850
7 changed files with 171 additions and 19 deletions
+9
View File
@@ -4,6 +4,7 @@ import shutil
from collections.abc import Callable
from json import JSONDecodeError
from pathlib import Path
from threading import Event
from typing import Any
import tidalapi
@@ -189,3 +190,11 @@ class Tidal(BaseConfig, metaclass=SingletonMeta):
del self.session
return True
class HandlingApp(metaclass=SingletonMeta):
event_abort: Event = Event()
event_run: Event = Event()
def __init__(self):
self.event_run.set()