Transmission params not set properly. fix #1344
This commit is contained in:
1 parent
c6642ffeb7
commit
51364a3c25
1 file changed
+3
-1
@@ -38,6 +38,7 @@ class Transmission(Downloader):
|
|||||||
'download-dir': folder_path
|
'download-dir': folder_path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
torrent_params = {}
|
||||||
if self.conf('ratio'):
|
if self.conf('ratio'):
|
||||||
torrent_params = {
|
torrent_params = {
|
||||||
'seedRatioLimit': self.conf('ratio'),
|
'seedRatioLimit': self.conf('ratio'),
|
||||||
@@ -58,7 +59,8 @@ class Transmission(Downloader):
|
|||||||
remote_torrent = trpc.add_torrent_file(b64encode(filedata), arguments = params)
|
remote_torrent = trpc.add_torrent_file(b64encode(filedata), arguments = params)
|
||||||
|
|
||||||
# Change settings of added torrents
|
# Change settings of added torrents
|
||||||
trpc.set_torrent(remote_torrent['torrent-added']['hashString'], torrent_params)
|
if torrent_params:
|
||||||
|
trpc.set_torrent(remote_torrent['torrent-added']['hashString'], torrent_params)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
|
|||||||
Reference in new issue
Block a user