temporarily disable notifications because of bug

This commit is contained in:
2025-10-10 23:10:09 +02:00
parent 12f7712af3
commit 223dcd9a4c
2 changed files with 13 additions and 10 deletions
+12 -9
View File
@@ -50,15 +50,18 @@ def dlprogress():
def send_notification(): def send_notification():
while True: while True:
if state.aria2 is None:
time.sleep(1)
continue
try: try:
downloads = state.aria2.get_downloads() for d in state.aria2.get_downloads():
if downloads: if d.is_complete:
for download in downloads: notification.notify(
if download.is_complete: title="Download finished",
# notification.notify("Download Complete" message=d.name,
print("yet") timeout=4)
time.sleep(5)
except Exception as e: except Exception as e:
if state.debug: if state.debug:
print(f"Notification Error: {e}") print("Notification thread error:", e)
break time.sleep(5)
+1 -1
View File
@@ -47,9 +47,9 @@ if __name__ == "__main__":
if state.debug: if state.debug:
print("Starting Aria2 Server") print("Starting Aria2 Server")
state.aria2process = run_aria2server() state.aria2process = run_aria2server()
run_thread(threading.Thread(target=send_notification))
signal.signal(signal.SIGINT, keyboardinterrupthandler) signal.signal(signal.SIGINT, keyboardinterrupthandler)
atexit.register(kill_aria2server) atexit.register(kill_aria2server)
# run_thread(threading.Thread(target=send_notification))
if state.debug: if state.debug:
print("Launching GUI") print("Launching GUI")
run_gui() run_gui()