From c73a37b7962a42efc522d125afa2458c86f8b8b3 Mon Sep 17 00:00:00 2001 From: Fernando Date: Fri, 20 Jan 2017 14:51:08 -0300 Subject: [PATCH] Read param isFinished because otherwise torrent can be paused but seed is not finished --- couchpotato/core/downloaders/transmission.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/couchpotato/core/downloaders/transmission.py b/couchpotato/core/downloaders/transmission.py index 41f5c23..4bb7dbe 100644 --- a/couchpotato/core/downloaders/transmission.py +++ b/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'