fix: apply romaji overrides to album cards on home/albums/artist views

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-06-05 23:43:27 +02:00
1 parent 01407ef3f1
commit ccdcda74ec
2 files changed
+11 -4

No files matched your search

+9 -2
View File
@@ -136,8 +136,15 @@ export async function removeRomajiOverride(kanji) {
}
export function dispArtistById(id, name) {
if (!S.cfg.showRomaji || !_artistRomajiMap) return name || '';
return _artistRomajiMap.get(String(id)) || name || '';
if (!S.cfg.showRomaji) return name || '';
const ov = getRomajiOverrides();
if (name && ov[name]) return ov[name];
return _artistRomajiMap?.get(String(id)) || name || '';
}
export function dispAlbumName(name) {
if (!S.cfg.showRomaji) return name || '';
const ov = getRomajiOverrides();
return ov[name] || name || '';
}
// Synchronous lookup — returns index entry for a song ID, or null if not in index.