From 7dfee80afc5d2d030497046d16b3fc4156c89e09 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 20 Apr 2012 21:25:56 +0200 Subject: [PATCH] Add some logging --- couchpotato/core/plugins/searcher/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 4e3273d6..030e5459 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -73,6 +73,8 @@ class Searcher(Plugin): quality = fireEvent('quality.single', identifier = quality_type['quality']['identifier'], single = True) results = fireEvent('yarr.search', movie, quality, merge = True) sorted_results = sorted(results, key = lambda k: k['score'], reverse = True) + if len(sorted_results) == 0: + log.debug('Nothing found for %s in %s' % (default_title, quality_type['quality']['label'])) # Add them to this movie releases list for nzb in sorted_results: