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

This commit is contained in:
Ruud
2013-01-23 22:54:02 +01:00
parent 749075b4cb
commit cad9bfae9f

View File

@@ -38,10 +38,11 @@ class Transmission(Downloader):
'download-dir': folder_path
}
torrent_params = {
'seedRatioLimit': self.conf('ratio'),
'seedRatioMode': (0 if self.conf('ratio') else 1)
}
if self.conf('ratio'):
torrent_params = {
'seedRatioLimit': self.conf('ratio'),
'seedRatioMode': self.conf('ratio')
}
if not filedata and data.get('type') == 'torrent':
log.error('Failed sending torrent, no data')