fix: Japanese/CJK albums vanished from artist discography (web + android)

The album-name normaliser stripped everything but a-z0-9, so any JP/CJK
title collapsed to "". All of an artist's Japanese singles then normalised
identically, de-duplicated into one entry and "matched" each other — e.g.
inabakumori (稲葉曇) showed only 2 of 9 releases. Normalisers now keep
Unicode letters/numbers (\p{L}\p{N}) in:
- web _normAlbum (detail.js)
- android normAlbum (categorizeAlbums), normTrack (partial-album split),
  the enrichPartialCounts helpers, and the Deezer artist-name match.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Opus 4.8 committed 2026-08-22 18:49:59 +02:00
1 parent ed641e999c
commit 026b392657
6 files changed
+21 -6

No files matched your search

+4 -1
View File
@@ -337,7 +337,10 @@ export async function loadArtistDetail(artist) {
}
function _normAlbum(s) {
return (s || '').toLowerCase().replace(/[^a-z0-9\s]/g, ' ').replace(/\s+/g, ' ').trim();
// Keep Unicode letters/numbers (not just a-z0-9) — otherwise every Japanese/CJK title strips to an
// empty string, so all of an artist's JP singles collapse into one entry and even "match" each
// other (that hid inabakumori's whole singles discography behind one album).
return (s || '').toLowerCase().replace(/[^\p{L}\p{N}\s]/gu, ' ').replace(/\s+/g, ' ').trim();
}
async function _renderArtistAlbums(el, ndAlbums, iAlbums, artist) {