From 24f7d78682870ed5da5b666e3fc38781a207cc27 Mon Sep 17 00:00:00 2001 From: nielsenj Date: Thu, 12 Jun 2014 14:02:50 -0700 Subject: [PATCH] Fixed setting ratio in Transmission Matches the description in the torrent provider advanced settings: Left blank defaults to client ratio default. '-1' Seeds indefinitely 0 or greater seeds to and stops at the ratio (including stopping as soon as it downloads when set to 0) --- sickbeard/clients/transmission.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/clients/transmission.py b/sickbeard/clients/transmission.py index e306b731..36a348d8 100644 --- a/sickbeard/clients/transmission.py +++ b/sickbeard/clients/transmission.py @@ -88,10 +88,10 @@ class TransmissionAPI(GenericClient): mode = 0 if ratio: - if float(ratio) == 0: + if float(ratio) == -1: ratio = 0 mode = 2 - elif float(ratio) > 0: + elif float(ratio) >= 0: ratio = float(ratio) mode = 1 # Stop seeding at seedRatioLimit