tidal: honor manually entered artist and album search terms
#6 795 ouverte le 28 juin 2026
Métriques du dépôt
- Stars
- (12 133 étoiles)
- Métriques de merge PR
- (Merge moyen 26j 4h) (51 PRs mergées en 30 j)
Description
Problem
The Tidal plugin ignores the artist and album entered through the importer's Enter search action. Beets passes these values to TidalPlugin.candidates(), but the plugin builds its queries from the existing item tags via _album_queries(items) instead.
This makes manual search repeat the original, incorrect search when users are trying to correct bad or missing tags. The singleton path has the same problem: item_candidates() ignores its artist and title arguments and uses _item_queries(item).
To reproduce:
- Enable the Tidal plugin and import an album with incorrect artist or album tags.
- Choose
Enter search. - Enter a different artist and album.
- Observe that Tidal searches using the original tags rather than the entered values.
Expected behavior
Tidal should use the manually entered artist and album or track title when Beets supplies explicit search terms.
Suggested fix
Build Tidal text queries from the artist and album/title arguments accepted by candidates() and item_candidates(), while retaining barcode and ISRC lookup precedence. Add focused regression tests proving that explicit search terms override item metadata for both albums and singletons.