mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +02:00
Replace underscores with spaces in filename-derived track names
This commit is contained in:
parent
81a8cc1329
commit
c55f5bc5c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 || '',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue