mirror of
https://github.com/beetbox/beets.git
synced 2026-11-30 09:34:33 -06:00
Try to match the exact title and artist/album first (case-insensitive via StringQuery), only then fall back to the previous substring matching. This helps in cases where multiple variants of a song with distinct listen counts exist, like "Song" and "Song (inst.)" or "Song (Japanese ver.)". This commit stops "Song" from also updating those separate variants if an exact match of "Song" exists. Nonetheless, if the library only has an item named "Song (feat. Artist)", "Song" will still update its play count through the substring match.