mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 18:03: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
|
return True
|
||||||
|
|
||||||
|
|
||||||
def findCertainShow(showList, indexerid=None):
|
def findCertainShow(showList, indexerid):
|
||||||
if not showList:
|
if not showList:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
results = []
|
||||||
if indexerid:
|
if indexerid:
|
||||||
results = filter(lambda x: int(x.indexerid) == int(indexerid), showList)
|
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:
|
if len(results) == 0:
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -132,7 +132,7 @@ class NameParser(object):
|
||||||
|
|
||||||
# get show object
|
# get show object
|
||||||
if not result.show and not self.naming_pattern:
|
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
|
# confirm result show object variables
|
||||||
if result.show:
|
if result.show:
|
||||||
|
|
Loading…
Reference in a new issue