Skip to content

Commit

Permalink
注释调试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Dec 12, 2023
1 parent 97d684f commit 12f947e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/core/music/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const buildLyricInfo = async(lyricInfo: MakeOptional<LX.Player.LyricInfo,

export const getCachedLyricInfo = async(musicInfo: LX.Music.MusicInfo): Promise<LX.Player.LyricInfo | null> => {
let lrcInfo = await getStoreLyric(musicInfo)
lrcInfo = {} as unknown as LX.Player.LyricInfo
// lrcInfo = {} as unknown as LX.Player.LyricInfo
if (existTimeExp.test(lrcInfo.lyric) && lrcInfo.tlyric != null) {
// if (musicInfo.lrc.startsWith('\ufeff[id:$00000000]')) {
// let str = musicInfo.lrc.replace('\ufeff[id:$00000000]\n', '')
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/utils/musicSdk/wy/lyric.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ export default songmid => {
yrv: 0,
})
requestObj.promise = requestObj.promise.then(({ body }) => {
console.log(body)
// console.log(body)
if (body.code !== 200 || !body?.lrc?.lyric) return Promise.reject(new Error('Get lyric failed'))
const fixTimeLabelLrc = fixTimeLabel(body.lrc.lyric, body.tlyric?.lyric, body.romalrc?.lyric)
const info = parseTools.parse(body.yrc?.lyric, body.ytlrc?.lyric, body.yromalrc?.lyric, fixTimeLabelLrc.lrc, fixTimeLabelLrc.tlrc, fixTimeLabelLrc.romalrc)
console.log(info)
// console.log(info)
if (!info.lyric) return Promise.reject(new Error('Get lyric failed'))
return info
})
Expand Down

0 comments on commit 12f947e

Please sign in to comment.