media: fix space at start of track title

This commit is contained in:
end-4
2025-07-03 22:56:05 +02:00
parent 59ef5ac390
commit e99f51e6ac
@@ -158,10 +158,10 @@ function cleanMusicTitle(title) {
// Japenis brackets
title = title.replace(/^ *【[^】]*】/, "") // Touhou
title = title.replace(/^ *《[^》]*》/, "") // ??
title = title.replace(/^ *「[^」]*」/, "") // OP/ED
title = title.replace(/^ *『[^』]*』/, "") // OP/ED
title = title.replace(/^ *「[^」]*」/, "") // OP/ED thingie
title = title.replace(/^ *『[^』]*』/, "") // OP/ED thingie
return title;
return title.trim();
}
function friendlyTimeForSeconds(seconds) {