From 54ea22e9b6d1c8b70a4f89f47bf21bb1100683c4 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 22 Jan 2013 22:02:23 +0100 Subject: [PATCH] Only remove available status releases when refreshing --- couchpotato/core/plugins/searcher/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index eb953cd1..8c1929af 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -251,7 +251,7 @@ class Searcher(Plugin): # Remove releases that aren't found anymore for release in movie.get('releases', []): - if release.get('identifier') not in found_releases: + if release.get('status_id') == available_status.get('id') and release.get('identifier') not in found_releases: fireEvent('release.delete', release.get('id'), single = True) else: