mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -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
|
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 New Issue
Block a user