1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

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)
This commit is contained in:
nielsenj 2014-06-12 14:02:50 -07:00
parent a742c27f09
commit 24f7d78682

View File

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