1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 23:05:11 -05:00

Fixed a issue that was causing multiple search strings to be created for the same season or episode during a search, this would of caused unrequired searches to be performed.

This commit is contained in:
echel0n 2014-05-15 22:16:35 -07:00
parent 03c3c9666b
commit 4576ade4ce
2 changed files with 4 additions and 4 deletions

View File

@ -247,8 +247,9 @@ class GenericProvider:
if seasonSearch:
for curString in self._get_season_search_strings(epObj):
itemList += self._doSearch(curString, len(episodes))
for curString in self._get_episode_search_strings(epObj):
itemList += self._doSearch(curString, len(episodes))
else:
for curString in self._get_episode_search_strings(epObj):
itemList += self._doSearch(curString, len(episodes))
# next episode if no search results
if not itemList:

View File

@ -203,11 +203,10 @@ class NewznabProvider(generic.NZBProvider):
(title, url) = self._get_title_and_url(curItem)
if title and url:
logger.log(u"RSS Feed provider: [" + self.name + "] Attempting to add item to cache: " + title, logger.DEBUG)
results.append(curItem)
else:
logger.log(
u"The data returned from the " + self.name + " RSS feed is incomplete, this result is unusable",
u"The data returned from the " + self.name + " is incomplete, this result is unusable",
logger.DEBUG)
return results