bump taglib-wasm, support embedded lyrics property

This commit is contained in:
jeffvli
2026-07-16 18:52:39 -07:00
parent 107727c65d
commit 4b15bcb7d7
3 changed files with 14 additions and 7 deletions
@@ -120,7 +120,14 @@ export async function readFilesMetadataBatch(
try {
const file = await taglib.open(filePath);
try {
const flat = flattenProperties(file.properties());
const rawProperties = file.properties();
const embeddedLyrics = file.getLyrics();
if (embeddedLyrics.length > 0) {
rawProperties.lyrics = [
embeddedLyrics.map(({ text }) => text).join('\n\n'),
];
}
const flat = flattenProperties(rawProperties);
const pictures = file.getPictures();
const frontCover = pictures.find((p) => p.type === 'FrontCover') ?? pictures[0];
const hasCoverArt = frontCover !== undefined;