From 035b99bc8abe8cfc0f37e524cf1e806d9eb42718 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 17 Sep 2014 23:06:59 +0200 Subject: [PATCH] Don't use event when not needed --- couchpotato/core/plugins/release/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/release/main.py b/couchpotato/core/plugins/release/main.py index 13ba5d4c..0385e226 100644 --- a/couchpotato/core/plugins/release/main.py +++ b/couchpotato/core/plugins/release/main.py @@ -116,7 +116,7 @@ class Release(Plugin): if media.get('last_edit', 0) > (now - week): continue - for rel in fireEvent('release.for_media', media['_id'], single = True): + for rel in self.forMedia(media['_id']): # Remove all available releases if rel['status'] in ['available']: