Skip to content

Commit 8f07788

Browse files
committed
Adjusted changelog, added suggestions by copilot
1 parent 3ed588c commit 8f07788

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

beets/autotag/match.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def _parse_search_terms_with_fallbacks(
244244
return the fallback terms.
245245
"""
246246
if all(term for term, _ in pairs):
247-
return tuple(term or default for term, default in pairs)
247+
return tuple(term for term, _ in pairs) # type: ignore[misc]
248248
else:
249249
return tuple(default for _, default in pairs)
250250

@@ -253,7 +253,7 @@ def tag_album(
253253
items,
254254
search_artist: str | None = None,
255255
search_album: str | None = None,
256-
search_ids: list[str] = [],
256+
search_ids: list[str] | None = None,
257257
) -> tuple[str, str, Proposal]:
258258
"""Return a tuple of the current artist name, the current album
259259
name, and a `Proposal` containing `AlbumMatch` candidates.

docs/changelog.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ For packagers:
2121

2222
Other changes:
2323

24-
- Standardized ``search_*`` parameter handling in autotag matchers. Manual album and
25-
singleton searches now behave consistently: when the prompt does not specify a
26-
search query, the system defaults to using the corresponding metadata value.
24+
- Standardized ``search_*`` parameter handling in autotag matchers. Manual album
25+
and singleton searches now behave consistently: when a user does not specify a
26+
search query in the prompt, the system defaults to using the corresponding
27+
value from the metadata. This was already the case for albums but not for
28+
singletons.
2729

2830
2.5.1 (October 14, 2025)
2931
------------------------

0 commit comments

Comments
 (0)