From 178f770b16012d780ae8e0894c976bf170e65f84 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 15 Mar 2014 12:33:01 +0100 Subject: [PATCH] Use key to get release last_edit --- couchpotato/core/plugins/renamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/renamer.py b/couchpotato/core/plugins/renamer.py index 585f6894..be9170c0 100644 --- a/couchpotato/core/plugins/renamer.py +++ b/couchpotato/core/plugins/renamer.py @@ -935,7 +935,7 @@ Remove it if you want it to be renamed (again, or at least let it try again) #Check status if already missing and for how long, if > 1 week, set to ignored else to missing if rel.get('status') == 'missing': - if rel.last_edit < int(time.time()) - 7 * 24 * 60 * 60: + if rel.get('last_edit') < int(time.time()) - 7 * 24 * 60 * 60: fireEvent('release.update_status', rel.get('_id'), status = 'ignored', single = True) else: # Set the release to missing