add console logging in gui, remove progress bar from gui, add new logging function, refactor all print statements to use new log function

This commit is contained in:
Vxrtrauter
2026-01-14 11:27:22 +01:00
parent 9afced8a0b
commit a386269f29
15 changed files with 128 additions and 122 deletions
+1 -2
View File
@@ -83,8 +83,7 @@ def update_log(shutdown_event):
if d.is_metadata:
continue
if d.progress == 100 and d.gid not in updated:
if state.debug:
print(f"Marking {d.name} as completed")
consoleLog(f"Marking {d.name} as completed")
update_download_completed_by_hash(d.info_hash, True)
updated.add(d.gid)
state.downloads = [d for d in state.aria2.get_downloads() if d.is_active and not d.is_metadata]
+3 -4
View File
@@ -1,16 +1,15 @@
from .aria2_integration import run_aria2p
from core.utils.data.state import state
from core.utils.general.logs import consoleLog
def start_client():
global aria2
aria2 = run_aria2p()
if state.debug:
print("Started Aria2p")
consoleLog("Started Aria2p")
def add_magnet(uri):
aria2.add_magnet(uri)
if state.debug:
print("Magnet URI added to Aria2")
consoleLog("Magnet URI added to Aria2")