mirror of
https://github.com/moparisthebest/SickRage
synced 2025-03-04 10:29:52 -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
|
# search cache first for wanted episodes
|
||||||
for ep_obj in wantedEps:
|
for ep_obj in wantedEps:
|
||||||
curResults = curProvider.cache.searchCache(ep_obj, manualSearch)
|
curResults = curProvider.cache.searchCache(ep_obj, manualSearch)
|
||||||
foundResults = filterSearchResults(show, curResults)
|
curResults = filterSearchResults(show, curResults)
|
||||||
|
if len(curResults):
|
||||||
if len(foundResults):
|
foundResults.update(curResults)
|
||||||
logger.log(u"Cache results: " + repr(foundResults), logger.DEBUG)
|
logger.log(u"Cache results: " + repr(foundResults), logger.DEBUG)
|
||||||
didSearch = True
|
didSearch = True
|
||||||
break
|
|
||||||
|
|
||||||
if not len(foundResults):
|
if not len(foundResults):
|
||||||
for curProvider in providers.sortedProviderList():
|
for curProvider in providers.sortedProviderList():
|
||||||
@ -418,10 +417,10 @@ def searchProviders(show, season, episode=None, manualSearch=False):
|
|||||||
# finished searching this provider successfully
|
# finished searching this provider successfully
|
||||||
didSearch = True
|
didSearch = True
|
||||||
|
|
||||||
foundResults = filterSearchResults(show, curResults)
|
curResults = filterSearchResults(show, curResults)
|
||||||
if len(foundResults):
|
if len(curResults):
|
||||||
|
foundResults.update(curResults)
|
||||||
logger.log(u"Provider search results: " + str(foundResults), logger.DEBUG)
|
logger.log(u"Provider search results: " + str(foundResults), logger.DEBUG)
|
||||||
break
|
|
||||||
|
|
||||||
if not didSearch:
|
if not didSearch:
|
||||||
logger.log(u"No NZB/Torrent providers found or enabled in the sickbeard config. Please check your settings.",
|
logger.log(u"No NZB/Torrent providers found or enabled in the sickbeard config. Please check your settings.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user