fixed error messages spamming in console + added debug messages

This commit is contained in:
Vxrtrauter
2025-10-11 20:35:21 +02:00
parent e4c50e20df
commit a9450435d7
5 changed files with 13 additions and 9 deletions
+5 -4
View File
@@ -49,14 +49,15 @@ def dlprogress():
return 0
def send_notification():
while True:
try:
for d in state.aria2.get_downloads():
for download in state.aria2:
if dlprogress() == 100:
notification.notify(
title="Download finished",
message=f"{d.name} has finished downloading.",
timeout=4
title = "Download finished",
message = f"{download.name} has finished downloading.",
timeout = 4
)
except Exception as e:
if state.debug: