更新依赖&版本号(2.9.0-beta.4)

This commit is contained in:
lyswhut
2024-07-24 19:32:39 +08:00
parent 4b01326420
commit 98fe433819
3 changed files with 55 additions and 55 deletions
+2 -2
View File
@@ -182,8 +182,8 @@ export const getLocalMusicFileLyric = async(path: string): Promise<string | null
// 尝试读取文件内歌词
const metadata = await getFileMetadata(path)
if (!metadata) return null
if (metadata.common.lyrics?.length && metadata.common.lyrics[0].length > 10) {
return metadata.common.lyrics[0]
if (metadata.common.lyrics?.[0]?.text && metadata.common.lyrics[0].text.length > 10) {
return metadata.common.lyrics[0].text
}
// console.log(metadata)
for (const info of Object.values(metadata.native)) {