Browse Source

Read param isFinished because otherwise torrent can be paused but seed is not finished

pull/7140/head
Fernando 8 years ago
committed by GitHub
parent
commit
c73a37b796
  1. 4
      couchpotato/core/downloaders/transmission.py

4
couchpotato/core/downloaders/transmission.py

@ -157,9 +157,7 @@ class Transmission(DownloaderBase):
status = 'busy'
if torrent.get('isStalled') and not torrent['percentDone'] == 1 and self.conf('stalled_as_failed'):
status = 'failed'
elif torrent['status'] == 0 and torrent['percentDone'] == 1:
status = 'completed'
elif torrent['status'] == 6 and torrent['percentDone'] == 1:
elif torrent['status'] == 0 and torrent['percentDone'] == 1 and torrent['isFinished']:
status = 'completed'
elif torrent['status'] in [5, 6]:
status = 'seeding'

Loading…
Cancel
Save