Add basic download logging + fix debug

This commit is contained in:
Vxrtrauter
2026-01-09 23:23:16 +01:00
parent 5eca1a678e
commit 97eabf6ec6
3 changed files with 22 additions and 2 deletions
+3
View File
@@ -4,6 +4,8 @@ from core.utils.data.tracker import get_magnet_link
from core.network.aria2_wrapper import start_client
from core.network.aria2_wrapper import add_magnet
from core.utils.general.wrappers import run_thread
from core.utils.general.logs import add_download_log
import threading
@@ -22,6 +24,7 @@ def run_download(item, posts, post_titles):
print("Selected URL: ", post_url)
magnet_uri = get_magnet_link(post_url)
start_client()
add_download_log(item, post_url, magnet_uri, False)
add_magnet(magnet_uri)