1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 19:12:26 -05:00

Fixes a few more issues with backlog searches, relates to issue #298

This commit is contained in:
echel0n 2014-05-01 22:14:56 -07:00
parent 1c6b0807b0
commit 5a1823a15a

View File

@ -393,12 +393,11 @@ def searchProviders(show, season, episode=None, manualSearch=False):
# search cache first for wanted episodes
for ep_obj in wantedEps:
curResults = curProvider.cache.searchCache(ep_obj, manualSearch)
foundResults = filterSearchResults(show, curResults)
if len(foundResults):
logger.log(u"Cache results: " + repr(foundResults), logger.DEBUG)
didSearch = True
break
curResults = filterSearchResults(show, curResults)
if len(curResults):
foundResults.update(curResults)
logger.log(u"Cache results: " + repr(foundResults), logger.DEBUG)
didSearch = True
if not len(foundResults):
for curProvider in providers.sortedProviderList():
@ -418,10 +417,10 @@ def searchProviders(show, season, episode=None, manualSearch=False):
# finished searching this provider successfully
didSearch = True
foundResults = filterSearchResults(show, curResults)
if len(foundResults):
curResults = filterSearchResults(show, curResults)
if len(curResults):
foundResults.update(curResults)
logger.log(u"Provider search results: " + str(foundResults), logger.DEBUG)
break
if not didSearch:
logger.log(u"No NZB/Torrent providers found or enabled in the sickbeard config. Please check your settings.",