移除歌词文件分离

This commit is contained in:
lyswhut
2022-10-29 13:20:11 +08:00
parent 358b93fb70
commit 72418194e9
2 changed files with 30 additions and 28 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
import { getLocalMusicFileLyric, getLocalMusicFilePic, parseLyric } from '@renderer/utils/music'
import { getLocalMusicFileLyric, getLocalMusicFilePic } from '@renderer/utils/music'
export const getMusicFilePic = async(filePath: string) => {
@@ -10,5 +10,7 @@ export const getMusicFilePic = async(filePath: string) => {
export const getMusicFileLyric = async(filePath: string): Promise<LX.Music.LyricInfo | null> => {
const lyric = await getLocalMusicFileLyric(filePath)
if (!lyric) return null
return parseLyric(lyric)
return {
lyric,
}
}