From e9a457e2635c520e6b4377d6198c9cfea0bbce49 Mon Sep 17 00:00:00 2001 From: mano3m Date: Sun, 15 Dec 2013 21:03:40 +0100 Subject: [PATCH] mark release das downloaded if renamer is disabled. if the renamer is not enabled and the quality of the downloaded release is not the finish quality, the release did not get a status update. --- couchpotato/core/plugins/release/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/release/main.py b/couchpotato/core/plugins/release/main.py index 11779803..2bc75e8a 100644 --- a/couchpotato/core/plugins/release/main.py +++ b/couchpotato/core/plugins/release/main.py @@ -260,7 +260,7 @@ class Release(Plugin): downloader_enabled = fireEvent('download.enabled', manual, data, single = True) if downloader_enabled: - snatched_status, done_status, active_status = fireEvent('status.get', ['snatched', 'done', 'active'], single = True) + snatched_status, done_status, downloaded_status, active_status = fireEvent('status.get', ['snatched', 'done', 'downloaded', 'active'], single = True) # Download release to temp filedata = None @@ -297,6 +297,9 @@ class Release(Plugin): # If renamer isn't used, mark media done if not renamer_enabled: + # Mark release downloaded + self.updateStatus(rls.id, status = downloaded_status) + try: if media['status_id'] == active_status.get('id'): for profile_type in media['profile']['types']: