Private GIT

Skip to content
Snippets Groups Projects
Commit 1ea2229f authored by Thraxis's avatar Thraxis
Browse files

Fix 'NoneType' object has no attribute 'whitelist

There should have always been a check if the show was anime here.  As
only anime had white and blacklists.  Added both check for is_anime and
that release_groups is not none
parent e4556a66
Branches
Tags
No related merge requests found
...@@ -200,6 +200,8 @@ def makeSceneSeasonSearchString(show, ep_obj, extraSearchType=None): ...@@ -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 # for providers that don't allow multiple searches in one request we only search for Sxx style stuff
else: else:
for cur_season in seasonStrings: 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: if len(show.release_groups.whitelist) > 0:
for keyword in show.release_groups.whitelist: for keyword in show.release_groups.whitelist:
toReturn.append(keyword + '.' + curShow+ "." + cur_season) toReturn.append(keyword + '.' + curShow+ "." + cur_season)
...@@ -237,6 +239,8 @@ def makeSceneSearchString(show, ep_obj): ...@@ -237,6 +239,8 @@ def makeSceneSearchString(show, ep_obj):
for curShow in showNames: for curShow in showNames:
for curEpString in epStrings: 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: if len(ep_obj.show.release_groups.whitelist) > 0:
for keyword in ep_obj.show.release_groups.whitelist: for keyword in ep_obj.show.release_groups.whitelist:
toReturn.append(keyword + '.' + curShow + '.' + curEpString) 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