更新依赖&版本号(2.9.0-beta.4)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user