Private GIT

Skip to content
Snippets Groups Projects
Commit 51364a3c authored by Ruud's avatar Ruud
Browse files

Transmission params not set properly. fix #1344

parent c6642ffe
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ class Transmission(Downloader):
'download-dir': folder_path
}
torrent_params = {}
if self.conf('ratio'):
torrent_params = {
'seedRatioLimit': self.conf('ratio'),
......@@ -58,6 +59,7 @@ class Transmission(Downloader):
remote_torrent = trpc.add_torrent_file(b64encode(filedata), arguments = params)
# Change settings of added torrents
if torrent_params:
trpc.set_torrent(remote_torrent['torrent-added']['hashString'], torrent_params)
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment