Update hash removal pattern

This commit is contained in:
thiloho
2025-04-27 11:04:41 +02:00
parent 3606edd967
commit 5c5b1cebe5

View File

@@ -17,10 +17,9 @@ const processedAlbumCovers = albumCovers.map((cover) => {
let title = lastDashIndex !== -1 ? filename.substring(lastDashIndex + 3) : ""; let title = lastDashIndex !== -1 ? filename.substring(lastDashIndex + 3) : "";
const lastDotIndex = title.lastIndexOf("."); if (import.meta.env.PROD) {
const lastDotIndex = filename.lastIndexOf(".");
if (lastDotIndex !== -1 && import.meta.env.PROD) { title = lastDotIndex !== -1 ? filename.substring(0, lastDotIndex) : "";
title = filename.substring(0, lastDotIndex);
} }
return { cover, filename, artists, title }; return { cover, filename, artists, title };