integrate download func in gui (partially)

This commit is contained in:
Vxrtrauter
2026-01-31 00:44:55 +01:00
parent b217a74fce
commit 685461e453
3 changed files with 75 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
from core.utils.general.logs import consoleLog
from core.network.libtorrent_int import add_download, dl_status_loop
def add_magnet(uri):
if uri is not None and uri.startswith("magnet:?"):
add_download(uri)
consoleLog("Magnet URI added to LibTorrent")
else:
consoleLog(f"Invalid Magnet Link: {uri}")