mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
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:
@@ -1,4 +1,5 @@
|
||||
from core.utils.data.state import state
|
||||
from core.utils.general.logs import consoleLog
|
||||
from core.utils.network.download import run_download_direct
|
||||
|
||||
def split_data(data):
|
||||
@@ -11,12 +12,10 @@ def split_data(data):
|
||||
def check_completed(downloads, resume):
|
||||
for download in downloads:
|
||||
if download.completed == False:
|
||||
if state.debug:
|
||||
print(f"Found unfinished download: {download.title}")
|
||||
consoleLog(f"Found unfinished download: {download.title}")
|
||||
if resume == True:
|
||||
run_download_direct(download.magnet_uri)
|
||||
if state.debug:
|
||||
print(f"Resuming {download.title}")
|
||||
consoleLog(f"Resuming {download.title}")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user