mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 06:15:09 -05:00
Fix for nameparser error during PP
This commit is contained in:
parent
cf99eb9625
commit
14fd0daa6c
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user