Skip to content

Commit

Permalink
fix(album-search): fallback to media.title when media.album is None
Browse files Browse the repository at this point in the history
Default was searching for "None" if a book wasn't matched at all ("Match" instead of "Fix Match")

Co-authored-by: David Dembeck <71412966+djdembeck@users.noreply.github.com>
Co-authored-by: Chris Sandvik <9214195+csandman@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 6, 2022
1 parent 4ee941e commit b993083
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Contents/Code/__init__.py
Expand Up @@ -272,6 +272,13 @@ def search(self, results, media, lang, manual):
search_helper.media.album
)

#workaround for default search not getting results using Plex "Match" menu
#search_helper.media.album was "none", but search_helper.media.title was accurate
if not normalizedName or normalizedName == "None":
normalizedName = String.StripDiacritics(
search_helper.media.title
)

# Check if we can quick match based on asin
quick_match_asin = search_helper.check_for_asin()
if quick_match_asin:
Expand Down

0 comments on commit b993083

Please sign in to comment.