mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
19 lines
445 B
Python
19 lines
445 B
Python
from .aria2_integration import run_aria2p
|
|
from core.utils.data.state import state
|
|
from core.utils.general.logs import consoleLog
|
|
|
|
def start_client():
|
|
global aria2
|
|
aria2 = run_aria2p()
|
|
consoleLog("Started Aria2p")
|
|
|
|
def add_magnet(uri):
|
|
if uri is not None and uri.startswith("magnet:?"):
|
|
aria2.add_magnet(uri)
|
|
consoleLog("Magnet URI added to Aria2")
|
|
else:
|
|
consoleLog(f"Invalid Magnet Link: {uri}")
|
|
|
|
|
|
|