mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Merge pull request #599 from nielsenj/patch-2
Fixed setting ratio in Transmission
This commit is contained in:
commit
cfc56a569d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue