From 54042c6cd96432e0e309c5f0f34fe065e77e6a51 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 11 Jul 2021 16:58:56 +0200 Subject: [PATCH] Autostart torrent fix --- pynyaata/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pynyaata/__init__.py b/pynyaata/__init__.py index e1f4089..69834be 100644 --- a/pynyaata/__init__.py +++ b/pynyaata/__init__.py @@ -248,8 +248,9 @@ def admin_edit(link_id=None): if title.folder.path is not None and title.folder.path != '': download_url = link.link.replace('/view/', '/download/') + '.torrent' torrent_path = '%s/%s' % (title.folder.path, title.name) - torrent = transmission.add_torrent(download_url, download_dir=torrent_path, paused=False) + torrent = transmission.add_torrent(download_url, download_dir=torrent_path) transmission.move_torrent_data(torrent.id, torrent_path) + transmission.start_torrent(torrent.id) return redirect(url_for('admin'))