From 18c670f4c7788c9fce8b635d43c7e84fc80b0cf8 Mon Sep 17 00:00:00 2001 From: trueold89 Date: Wed, 1 Nov 2023 00:08:10 +0300 Subject: [PATCH] Magnet function bugfix --- bot/func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/func.py b/bot/func.py index b8a65b6..18c5283 100644 --- a/bot/func.py +++ b/bot/func.py @@ -71,7 +71,7 @@ def magnet(id,link,dir): if auth_check(id): dict = db.read(DIR_FILE) 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}'") return 'Torrent добавлен в очередь' else: