Transmission: Don't use ratio when not filled in.

This commit is contained in:
Ruud committed 2013-01-23 22:54:02 +01:00
1 parent 749075b4cb
commit cad9bfae9f
1 file changed
+2 -1
@@ -38,9 +38,10 @@ class Transmission(Downloader):
'download-dir': folder_path 'download-dir': folder_path
} }
if self.conf('ratio'):
torrent_params = { torrent_params = {
'seedRatioLimit': self.conf('ratio'), 'seedRatioLimit': self.conf('ratio'),
'seedRatioMode': (0 if self.conf('ratio') else 1) 'seedRatioMode': self.conf('ratio')
} }
if not filedata and data.get('type') == 'torrent': if not filedata and data.get('type') == 'torrent':