Private GIT

Skip to content
Snippets Groups Projects
Commit 762bb1be authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge pull request #1889 from Thraxis/Fix#1453

Fix#1453 - Fix 'NoneType' object has no attribute 'whitelist
parents e4556a66 1ea2229f
Branches
Tags
No related merge requests found
......@@ -200,6 +200,8 @@ def makeSceneSeasonSearchString(show, ep_obj, extraSearchType=None):
# for providers that don't allow multiple searches in one request we only search for Sxx style stuff
else:
for cur_season in seasonStrings:
if ep_obj.show.is_anime:
if ep_obj.show.release_groups is not None:
if len(show.release_groups.whitelist) > 0:
for keyword in show.release_groups.whitelist:
toReturn.append(keyword + '.' + curShow+ "." + cur_season)
......@@ -237,6 +239,8 @@ def makeSceneSearchString(show, ep_obj):
for curShow in showNames:
for curEpString in epStrings:
if ep_obj.show.is_anime:
if ep_obj.show.release_groups is not None:
if len(ep_obj.show.release_groups.whitelist) > 0:
for keyword in ep_obj.show.release_groups.whitelist:
toReturn.append(keyword + '.' + curShow + '.' + curEpString)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment