mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-04 10:23:37 +00:00
Merge branch 'origin/dev'
This commit is contained in:
commit
486e1cfe4a
1 changed files with 18 additions and 13 deletions
|
@ -319,7 +319,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
logger.ERROR)
|
logger.ERROR)
|
||||||
return []
|
return []
|
||||||
|
|
||||||
for provider in providers:
|
for providerNum, provider in enumerate(providers):
|
||||||
foundResults = {provider.name:{}}
|
foundResults = {provider.name:{}}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -523,6 +523,7 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
|
|
||||||
finalResults.append(bestResult)
|
finalResults.append(bestResult)
|
||||||
|
|
||||||
|
if manualSearch:
|
||||||
logger.log(u"Checking if we should snatch " + bestResult.name, logger.DEBUG)
|
logger.log(u"Checking if we should snatch " + bestResult.name, logger.DEBUG)
|
||||||
any_qualities, best_qualities = Quality.splitQuality(show.quality)
|
any_qualities, best_qualities = Quality.splitQuality(show.quality)
|
||||||
|
|
||||||
|
@ -538,6 +539,10 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
queueItem.results = [bestResult]
|
queueItem.results = [bestResult]
|
||||||
return queueItem
|
return queueItem
|
||||||
|
|
||||||
|
# make sure we search every provider for results
|
||||||
|
if providerNum < len(providers):
|
||||||
|
continue
|
||||||
|
|
||||||
# remove duplicates and insures snatch of highest quality from results
|
# remove duplicates and insures snatch of highest quality from results
|
||||||
for i1, result1 in enumerate(finalResults):
|
for i1, result1 in enumerate(finalResults):
|
||||||
for i2, result2 in enumerate(finalResults):
|
for i2, result2 in enumerate(finalResults):
|
||||||
|
|
Loading…
Reference in a new issue