Skip to content

Commit

Permalink
search: add artist to the query when we search for albums
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed Dec 8, 2024
1 parent 126d1ba commit e98b996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beetsplug/bandcamp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ def candidates(
artist = ""

if album:
query = album
name = album
search_type = "a"
else:
query = " - ".join(filter(None, [artist, item.title]))
name = item.title
search_type = ""

search = {
"query": query,
"query": " - ".join(filter(None, [artist, name])),
"artist": artist,
"label": label,
"search_type": search_type,
Expand Down

0 comments on commit e98b996

Please sign in to comment.