更新依赖

This commit is contained in:
lyswhut
2025-11-14 18:52:51 +08:00
parent c35095f90e
commit 4a3359f773
4 changed files with 706 additions and 689 deletions
+9 -9
View File
@@ -210,15 +210,15 @@ export const getLocalMusicFileLyric = async(path: string): Promise<LX.Music.Lyri
const metadata = await getFileMetadata(path)
// console.log(metadata?.common)
if (!metadata) return null
let lyricInfo = metadata.common.lyrics?.[0]
if (lyricInfo) {
let lyric: string | undefined
if (typeof lyricInfo == 'object') lyric = lyricInfo.text
else if (typeof lyricInfo == 'string') lyric = lyricInfo
if (lyric && lyric.length > 10) {
return { lyric }
}
}
// let lyricInfo = metadata.common.lyrics?.[0]
// if (lyricInfo) {
// let lyric: string | undefined
// if (typeof lyricInfo == 'object') lyric = lyricInfo.text
// else if (typeof lyricInfo == 'string') lyric = lyricInfo
// if (lyric && lyric.length > 10) {
// return { lyric }
// }
// }
// console.log(metadata)
for (const info of Object.values(metadata.native)) {
for (const ust of info) {