Removed config options and fixed a bug with beet spotify command

This commit is contained in:
Sebastian Mohr 2025-09-17 12:47:22 +02:00
parent c7ba399dd1
commit efbfc23931
2 changed files with 6 additions and 8 deletions

View file

@ -130,9 +130,6 @@ class SpotifyPlugin(
"mode": "list", "mode": "list",
"tiebreak": "popularity", "tiebreak": "popularity",
"show_failures": False, "show_failures": False,
"artist_field": "albumartist",
"album_field": "album",
"track_field": "title",
"region_filter": None, "region_filter": None,
"regex": [], "regex": [],
"client_id": "4e414367a1d14c75a5c5129a627fcab8", "client_id": "4e414367a1d14c75a5c5129a627fcab8",
@ -563,13 +560,11 @@ class SpotifyPlugin(
regex["search"], regex["replace"], value regex["search"], regex["replace"], value
) )
# Custom values can be passed in the config (just in case) artist = item["artist"] or item["albumartist"]
artist = item[self.config["artist_field"].get()] album = item["album"]
album = item[self.config["album_field"].get()] query_string = item["title"]
query_string = item[self.config["track_field"].get()]
# Query the Web API for each track, look for the items' JSON data # Query the Web API for each track, look for the items' JSON data
query_filters: SearchFilter = {} query_filters: SearchFilter = {}
if artist: if artist:
query_filters["artist"] = artist query_filters["artist"] = artist

View file

@ -15,6 +15,9 @@ Bug fixes:
return incorrect or misleading results when using the Spotify plugin. The return incorrect or misleading results when using the Spotify plugin. The
problem occurred primarily when no album was provided or when the album field problem occurred primarily when no album was provided or when the album field
was an empty string. :bug:`5189` was an empty string. :bug:`5189`
- :doc:`plugins/spotify` Removed old and undocumented config options
`artist_field`, `album_field` and `track` that were causing issues with track
matching. :bug:`5189`
For packagers: For packagers: