mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-04 10:23:37 +00:00
Fix for search iteration issue
This commit is contained in:
parent
70c5a02580
commit
eeb632fd0f
1 changed files with 4 additions and 3 deletions
|
@ -326,8 +326,9 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
logger.ERROR)
|
logger.ERROR)
|
||||||
return queueItem
|
return queueItem
|
||||||
|
|
||||||
|
foundResults = {}
|
||||||
for providerNum, provider in enumerate(providers):
|
for providerNum, provider in enumerate(providers):
|
||||||
foundResults = {provider.name: {}}
|
foundResults.setdefault(provider.name, {})
|
||||||
|
|
||||||
try:
|
try:
|
||||||
curResults = provider.findSearchResults(show, season, episodes, seasonSearch, manualSearch)
|
curResults = provider.findSearchResults(show, season, episodes, seasonSearch, manualSearch)
|
||||||
|
@ -426,7 +427,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
epNum = MULTI_EP_RESULT
|
epNum = MULTI_EP_RESULT
|
||||||
|
|
||||||
if epNum in foundResults[provider.name]:
|
if epNum in foundResults[provider.name]:
|
||||||
foundResults[provider.name][epNum] += curResult
|
foundResults[provider.name][epNum].append(curResult)
|
||||||
else:
|
else:
|
||||||
foundResults[provider.name][epNum] = [curResult]
|
foundResults[provider.name][epNum] = [curResult]
|
||||||
|
|
||||||
|
@ -443,7 +444,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
|
|
||||||
epNum = MULTI_EP_RESULT
|
epNum = MULTI_EP_RESULT
|
||||||
if epNum in foundResults[provider.name]:
|
if epNum in foundResults[provider.name]:
|
||||||
foundResults[provider.name][epNum] += bestSeasonNZB
|
foundResults[provider.name][epNum].append(bestSeasonNZB)
|
||||||
else:
|
else:
|
||||||
foundResults[provider.name][epNum] = [bestSeasonNZB]
|
foundResults[provider.name][epNum] = [bestSeasonNZB]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue