From 14fd0daa6c6c1249fbb3299be2203fa43a8437ec Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 19 Jul 2014 06:53:06 -0700 Subject: [PATCH] Fix for nameparser error during PP --- sickbeard/helpers.py | 5 ++--- sickbeard/name_parser/parser.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index 6bc3cc0c..039c7aa1 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -261,14 +261,13 @@ def download_file(url, filename): return True -def findCertainShow(showList, indexerid=None): +def findCertainShow(showList, indexerid): if not showList: return None + results = [] if indexerid: results = filter(lambda x: int(x.indexerid) == int(indexerid), showList) - else: - results = filter(lambda x: int(x.indexerid) == int(indexerid), showList) if len(results) == 0: return None diff --git a/sickbeard/name_parser/parser.py b/sickbeard/name_parser/parser.py index 25a8b7f6..e0980963 100644 --- a/sickbeard/name_parser/parser.py +++ b/sickbeard/name_parser/parser.py @@ -132,7 +132,7 @@ class NameParser(object): # get show object if not result.show and not self.naming_pattern: - result.show = helpers.get_show(result.series_name, indexer_id=self.showObj.indexerid) + result.show = helpers.get_show(result.series_name, useIndexer=self.useIndexers) # confirm result show object variables if result.show: