Private GIT

Skip to content
Snippets Groups Projects
Commit 717e905c authored by miigotu's avatar miigotu
Browse files

Merge pull request #2813 from HenrikPoulsen/animeSearchCornercase

Fixed a corner case issue where scene exceptions can't be found for some animes
parents 9fdd38e6 e8c4d88d
Branches
Tags
No related merge requests found
......@@ -309,7 +309,7 @@ def _xem_exceptions_fetcher():
for indexer in sickbeard.indexerApi().indexers:
logger.log(u"Checking for XEM scene exception updates for " + sickbeard.indexerApi(indexer).name)
url = "http://thexem.de/map/allNames?origin=%s&seasonNumbers=1&language=us" % sickbeard.indexerApi(indexer).config[
url = "http://thexem.de/map/allNames?origin=%s&seasonNumbers=1" % sickbeard.indexerApi(indexer).config[
'xem_origin']
parsedJSON = helpers.getURL(url, session=xem_session, timeout = 90, json=True)
......
......@@ -248,6 +248,9 @@ def makeSceneSearchString(show, ep_obj):
if len(ep_obj.show.release_groups.whitelist) > 0:
for keyword in ep_obj.show.release_groups.whitelist:
toReturn.append(keyword + '.' + curShow + '.' + curEpString)
elif len(ep_obj.show.release_groups.blacklist) == 0:
# If we have neither whitelist or blacklist we just append what we have
toReturn.append(curShow + '.' + curEpString)
else:
toReturn.append(curShow + '.' + curEpString)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment