Skip to content

Commit

Permalink
fix(author-search): 🐛 handle search failure when no artist tag is ava…
Browse files Browse the repository at this point in the history
…ilable but title is (manual search)
  • Loading branch information
djdembeck committed Oct 12, 2021
1 parent 5ca6761 commit f399442
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Contents/Code/search_tools.py
Expand Up @@ -267,6 +267,13 @@ def validate_author_name(self):
If matched, author name is set to None to prevent
it being used in search query.
"""
# Sometimes artist isn't set but title is
if not self.media.artist:
if self.media.title:
self.media.artist = self.media.title
else:
log.error("No artist to validate")
return

author_array = self.media.artist.split(', ')
# Handle multi-artist
Expand Down

0 comments on commit f399442

Please sign in to comment.