mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Fix for nameparser error during PP
This commit is contained in:
parent
cf99eb9625
commit
14fd0daa6c
2 changed files with 3 additions and 4 deletions
|
@ -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 a new issue