Browse Source

Transmission status 16 is for "Stopped". So we need to detect a download as completed even if it is stopped but percent done is 100

pull/4201/head
Mathew Paret 11 years ago
parent
commit
28019b0a09
  1. 2
      couchpotato/core/downloaders/transmission.py

2
couchpotato/core/downloaders/transmission.py

@ -119,6 +119,8 @@ class Transmission(DownloaderBase):
status = 'failed'
elif torrent['status'] == 0 and torrent['percentDone'] == 1:
status = 'completed'
elif torrent['status'] == 16 and torrent['percentDone'] == 1:
status = 'completed'
elif torrent['status'] in [5, 6]:
status = 'seeding'

Loading…
Cancel
Save