Browse Source

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

pull/1342/head
Ruud 12 years ago
parent
commit
cad9bfae9f
  1. 3
      couchpotato/core/downloaders/transmission/main.py

3
couchpotato/core/downloaders/transmission/main.py

@ -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':

Loading…
Cancel
Save