mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
add threads setting in settings menu + add aria2c restart function in gui.py
This commit is contained in:
@@ -15,6 +15,15 @@ def run_aria2p():
|
||||
|
||||
return aria2
|
||||
|
||||
t = 4 # default value
|
||||
|
||||
def set_threads(threads):
|
||||
global t
|
||||
t = threads
|
||||
|
||||
|
||||
|
||||
|
||||
def aria2server():
|
||||
downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads")
|
||||
|
||||
@@ -24,7 +33,9 @@ def aria2server():
|
||||
"--disable-ipv6", # added this since it caused problems with vpns
|
||||
"--rpc-listen-all",
|
||||
"--rpc-listen-port=6800",
|
||||
f"--dir={downloads_dir}"
|
||||
f"--dir={downloads_dir}",
|
||||
"-x", str(t),
|
||||
"-s", str(t),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user