mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 18:03:37 +00:00
Test #2000 for season pack fix for BTN
This commit is contained in:
parent
b5890b2af7
commit
858ac3af18
2 changed files with 9 additions and 10 deletions
|
@ -311,7 +311,7 @@ class BTNCache(tvcache.TVCache):
|
||||||
def __init__(self, provider):
|
def __init__(self, provider):
|
||||||
tvcache.TVCache.__init__(self, provider)
|
tvcache.TVCache.__init__(self, provider)
|
||||||
|
|
||||||
# At least 15 minutes between queries
|
# At least 15 minutes between queries
|
||||||
self.minTime = 15
|
self.minTime = 15
|
||||||
|
|
||||||
def updateCache(self):
|
def updateCache(self):
|
||||||
|
|
|
@ -314,6 +314,11 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
|
|
||||||
providers = [x for x in sickbeard.providers.sortedProviderList() if x.isActive()]
|
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:
|
for provider in providers:
|
||||||
foundResults = {provider.name:{}}
|
foundResults = {provider.name:{}}
|
||||||
|
|
||||||
|
@ -321,22 +326,16 @@ def searchProviders(queueItem, show, season, episodes, seasonSearch=False, manua
|
||||||
curResults = provider.findSearchResults(show, season, episodes, seasonSearch, manualSearch)
|
curResults = provider.findSearchResults(show, season, episodes, seasonSearch, manualSearch)
|
||||||
except exceptions.AuthException, e:
|
except exceptions.AuthException, e:
|
||||||
logger.log(u"Authentication error: " + ex(e), logger.ERROR)
|
logger.log(u"Authentication error: " + ex(e), logger.ERROR)
|
||||||
return []
|
continue
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log(u"Error while searching " + provider.name + ", skipping: " + ex(e), logger.ERROR)
|
logger.log(u"Error while searching " + provider.name + ", skipping: " + ex(e), logger.ERROR)
|
||||||
logger.log(traceback.format_exc(), logger.DEBUG)
|
logger.log(traceback.format_exc(), logger.DEBUG)
|
||||||
return []
|
continue
|
||||||
|
|
||||||
didSearch = True
|
|
||||||
|
|
||||||
if not len(curResults):
|
if not len(curResults):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
curResults = filterSearchResults(show, curResults)
|
foundResults[provider.name] = filterSearchResults(show, curResults)
|
||||||
if len(curResults):
|
|
||||||
foundResults[provider.name] = curResults
|
|
||||||
logger.log(u"Provider search results: " + repr(foundResults), logger.DEBUG)
|
|
||||||
|
|
||||||
if not len(foundResults[provider.name]):
|
if not len(foundResults[provider.name]):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue