mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixes a few more issues with backlog searches, relates to issue #298
This commit is contained in:
parent
1c6b0807b0
commit
5a1823a15a
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user