From 51364a3c257415bf517d1ad1de68359fa7a86153 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 25 Jan 2013 13:12:10 +0100 Subject: [PATCH] Transmission params not set properly. fix #1344 --- couchpotato/core/downloaders/transmission/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/transmission/main.py b/couchpotato/core/downloaders/transmission/main.py index d7354823..5c13af6e 100644 --- a/couchpotato/core/downloaders/transmission/main.py +++ b/couchpotato/core/downloaders/transmission/main.py @@ -38,6 +38,7 @@ class Transmission(Downloader): 'download-dir': folder_path } + torrent_params = {} if self.conf('ratio'): torrent_params = { 'seedRatioLimit': self.conf('ratio'), @@ -58,7 +59,8 @@ class Transmission(Downloader): remote_torrent = trpc.add_torrent_file(b64encode(filedata), arguments = params) # 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 except Exception, err: