1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix for nameparser error during PP

This commit is contained in:
echel0n 2014-07-19 06:53:06 -07:00
parent cf99eb9625
commit 14fd0daa6c
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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: