Autostart torrent
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Michel Roux 2021-07-11 13:17:58 +02:00
parent d043435d91
commit a7c39054b1
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ 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)
torrent = transmission.add_torrent(download_url, download_dir=torrent_path, paused=False)
transmission.move_torrent_data(torrent.id, torrent_path)
return redirect(url_for('admin'))