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:
parent
03c3c9666b
commit
4576ade4ce
@ -247,8 +247,9 @@ 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))
|
||||||
for curString in self._get_episode_search_strings(epObj):
|
else:
|
||||||
itemList += self._doSearch(curString, len(episodes))
|
for curString in self._get_episode_search_strings(epObj):
|
||||||
|
itemList += self._doSearch(curString, len(episodes))
|
||||||
|
|
||||||
# next episode if no search results
|
# next episode if no search results
|
||||||
if not itemList:
|
if not itemList:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user