mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
integrate download func in gui (partially)
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user