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,6 +247,7 @@ class GenericProvider:
if seasonSearch: if seasonSearch:
for curString in self._get_season_search_strings(epObj): for curString in self._get_season_search_strings(epObj):
itemList += self._doSearch(curString, len(episodes)) itemList += self._doSearch(curString, len(episodes))
else:
for curString in self._get_episode_search_strings(epObj): for curString in self._get_episode_search_strings(epObj):
itemList += self._doSearch(curString, len(episodes)) itemList += self._doSearch(curString, len(episodes))

View File

@ -203,11 +203,10 @@ class NewznabProvider(generic.NZBProvider):
(title, url) = self._get_title_and_url(curItem) (title, url) = self._get_title_and_url(curItem)
if title and url: if title and url:
logger.log(u"RSS Feed provider: [" + self.name + "] Attempting to add item to cache: " + title, logger.DEBUG)
results.append(curItem) results.append(curItem)
else: else:
logger.log( 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) logger.DEBUG)
return results return results