From 8874bd4e2b901a34d7fddd40effdf7086024df4e Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 12 Oct 2012 13:15:40 +0200 Subject: [PATCH] Wrongly assuming quality when no quality in the name. fix #901 --- couchpotato/core/plugins/searcher/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 03dfd70b..80f24708 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -391,9 +391,11 @@ class Searcher(Plugin): year_name = fireEvent('scanner.name_year', name, single = True) if movie_year < datetime.datetime.now().year - 3 and not year_name.get('year', None): if size > 3000: # Assume dvdr - return 'dvdr' == preferred_quality['identifier'] + log.info('Quality was missing in name, assuming it\'s a DVD-R based on the size: %s', (size)) + found['dvdr'] = True else: # Assume dvdrip - return 'dvdrip' == preferred_quality['identifier'] + log.info('Quality was missing in name, assuming it\'s a DVD-Rip based on the size: %s', (size)) + found['dvdrip'] = True # Allow other qualities for allowed in preferred_quality.get('allow'):