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

This commit is contained in:
Mathew Paret
2014-11-10 18:39:58 +05:30
parent 4b66b0ea07
commit 28019b0a09

View File

@@ -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'