diff --git a/core/network/aria2_integration.py b/core/network/aria2_integration.py index 2830cac..9b14bb5 100644 --- a/core/network/aria2_integration.py +++ b/core/network/aria2_integration.py @@ -55,18 +55,6 @@ def dlprogress(): except: return 0 -# def dlspeed(): -# try: -# state.downloads = [download for download in state.aria2.get_downloads() if not download.is_metadata] -# downloads = state.downloads -# if downloads: -# for download in downloads: -# speed = download.download_speed() -# return speed -# return "0 B/s" -# except: -# return "0 B/s" - def send_notification(shutdown_event): while not shutdown_event.is_set(): try: diff --git a/core/utils/data/state.py b/core/utils/data/state.py index 912bfd8..633415e 100644 --- a/core/utils/data/state.py +++ b/core/utils/data/state.py @@ -9,7 +9,6 @@ class AppState: post_urls: List[str] post_author: List[str] downloads: List[str] - # dl_speed: str = "0 B/s" debug: bool = False tracker: str = "rutracker" api_url: str = "https://api.michijackson.xyz"