add downloads tab functionality

This commit is contained in:
2025-10-12 20:08:35 +02:00
parent 65a5b8cdbf
commit 6e2860cb67
3 changed files with 64 additions and 8 deletions
+11
View File
@@ -55,6 +55,17 @@ 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():