refactor: reorganize logging functionality and remove unused log files

This commit is contained in:
Vxrtrauter
2026-02-28 03:33:10 +01:00
parent 60019e0d2e
commit 04d93b870a
3 changed files with 0 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from core.utils.logs.logs import consoleLog
from core.utils.network.download import run_download_direct
def split_data(data):
count = data.count
downloads = data.data
return count, downloads
def check_completed(downloads, resume):
for download in downloads:
if download.completed == False:
consoleLog(f"Found unfinished download: {download.title}")
if resume == True:
run_download_direct(download.magnet_uri)
consoleLog(f"Resuming {download.title}")