Replace underscores with spaces in filename-derived track names

This commit is contained in:
Armin 2026-07-08 17:58:17 +02:00
commit c55f5bc5c1

View file

@ -1091,7 +1091,7 @@ async function processFiles(files, paths) {
const url = URL.createObjectURL(file); const url = URL.createObjectURL(file);
const path = paths ? paths[i] : file.name; const path = paths ? paths[i] : file.name;
const [tags, ainfo, duration] = await Promise.all([readTags(file), readAudioInfo(file), readDuration(file)]); const [tags, ainfo, duration] = await Promise.all([readTags(file), readAudioInfo(file), readDuration(file)]);
const name = tags.title || file.name.replace(/\.[^.]+$/, ''); const name = tags.title || file.name.replace(/\.[^.]+$/, '').replace(/_/g, ' ');
found.push({ found.push({
name, name,
artist: tags.artist || '', artist: tags.artist || '',