Test #2000 for season pack fix for BTN

This commit is contained in:
echel0n 2014-05-12 11:57:26 -07:00
parent b5890b2af7
commit 858ac3af18
2 changed files with 9 additions and 10 deletions

View file

@ -311,7 +311,7 @@ class BTNCache(tvcache.TVCache):
def __init__(self, provider):
tvcache.TVCache.__init__(self, provider)
# At least 15 minutes between queries
# At least 15 minutes between queries
self.minTime = 15
def updateCache(self):

View file

@ -314,6 +314,11 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
if not len(providers):
logger.log(u"No NZB/Torrent providers found or enabled in the sickrage config. Please check your settings.",
logger.ERROR)
return []
for provider in providers:
foundResults = {provider.name:{}}
@ -321,22 +326,16 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
curResults = provider.findSearchResults(show, season, episodes, seasonSearch, manualSearch)
except exceptions.AuthException, e:
logger.log(u"Authentication error: " + ex(e), logger.ERROR)
return []
continue
except Exception, e:
logger.log(u"Error while searching " + provider.name + ", skipping: " + ex(e), logger.ERROR)
logger.log(traceback.format_exc(), logger.DEBUG)
return []
didSearch = True
continue
if not len(curResults):
continue
curResults = filterSearchResults(show, curResults)
if len(curResults):
foundResults[provider.name] = curResults
logger.log(u"Provider search results: " + repr(foundResults), logger.DEBUG)
foundResults[provider.name] = filterSearchResults(show, curResults)
if not len(foundResults[provider.name]):
continue