Skip to content

Commit

Permalink
fix(album-search): 🐛 normalizedName was requested before being made…
Browse files Browse the repository at this point in the history
… available
  • Loading branch information
djdembeck committed Jan 23, 2023
1 parent 9461d3f commit f2fb6d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Contents/Code/search_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def pre_process_title(self):

# Normalize name
if self.content_type == 'books':
self.normalize_name()
asin_search_title = self.normalizedName

# ASIN override
Expand All @@ -144,7 +143,9 @@ def build_search_args(self):
"""
Builds the search arguments for the API call.
"""
# If search is not an ASIN, use the album name
# First, normalize the name
self.normalize_name()
# Album title query
album_param = 'title=' + urllib.quote(self.normalizedName)

# Fix match/manual search doesn't provide author
Expand Down

0 comments on commit f2fb6d4

Please sign in to comment.