Browse Source

Update deluge.py

Changed the stop_ratio check to become "smaller than", instead of "smaller than or equal to" 0.
pull/7174/head
yigit007 8 years ago
committed by GitHub
parent
commit
a2ebe5bdd7
  1. 2
      couchpotato/core/downloaders/deluge.py

2
couchpotato/core/downloaders/deluge.py

@ -159,7 +159,7 @@ class Deluge(DownloaderBase):
# If an user opts to seed a torrent forever (usually associated to private trackers usage), stop_ratio will be 0 or -1 (depending on Deluge version).
# In this scenario the status of the torrent would never change from BUSY to SEEDING.
# The last check takes care of this case.
if torrent['is_seed'] and ((tryFloat(torrent['ratio']) < tryFloat(torrent['stop_ratio'])) or (tryFloat(torrent['stop_ratio']) <= 0)):
if torrent['is_seed'] and ((tryFloat(torrent['ratio']) < tryFloat(torrent['stop_ratio'])) or (tryFloat(torrent['stop_ratio']) < 0)):
# We have torrent['seeding_time'] to work out what the seeding time is, but we do not
# have access to the downloader seed_time, as with deluge we have no way to pass it
# when the torrent is added. So Deluge will only look at the ratio.

Loading…
Cancel
Save