add download speed limit setting

This commit is contained in:
2025-10-10 19:44:33 +02:00
parent d7d454a213
commit 573889721f
5 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -1,6 +1,5 @@
from core.utils.data.state import state
from .config import create_config
import os
def restart_aria2c():
import main # had to do this because of circle import :(
@@ -13,10 +12,11 @@ def restart_aria2c():
atexit.unregister(main.kill_aria2server)
atexit.register(main.kill_aria2server)
def save_settings(thread_count, close, apiurl, download_path):
def save_settings(thread_count, close, apiurl, download_path, speed_limit):
state.aria2_threads = thread_count
state.api_url = apiurl
state.download_path = download_path
state.speed_limit = speed_limit
create_config()
restart_aria2c()