Magnet function bugfix
This commit is contained in:
parent
347cf84e98
commit
18c670f4c7
|
@ -71,7 +71,7 @@ def magnet(id,link,dir):
|
||||||
if auth_check(id):
|
if auth_check(id):
|
||||||
dict = db.read(DIR_FILE)
|
dict = db.read(DIR_FILE)
|
||||||
path = dict[dir]
|
path = dict[dir]
|
||||||
command = f'''qbt torrent add url "{link} -f {path}"'''
|
command = f'''qbt torrent add url "{link}" -f "{path}"'''
|
||||||
os.system(f"bash -c '{command}'")
|
os.system(f"bash -c '{command}'")
|
||||||
return 'Torrent добавлен в очередь'
|
return 'Torrent добавлен в очередь'
|
||||||
else:
|
else:
|
||||||
|
|
Reference in New Issue