mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 14:25:02 -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:
parent
a742c27f09
commit
24f7d78682
@ -88,10 +88,10 @@ class TransmissionAPI(GenericClient):
|
|||||||
|
|
||||||
mode = 0
|
mode = 0
|
||||||
if ratio:
|
if ratio:
|
||||||
if float(ratio) == 0:
|
if float(ratio) == -1:
|
||||||
ratio = 0
|
ratio = 0
|
||||||
mode = 2
|
mode = 2
|
||||||
elif float(ratio) > 0:
|
elif float(ratio) >= 0:
|
||||||
ratio = float(ratio)
|
ratio = float(ratio)
|
||||||
mode = 1 # Stop seeding at seedRatioLimit
|
mode = 1 # Stop seeding at seedRatioLimit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user