添加wy源逐字歌词的支持

This commit is contained in:
lyswhut
2023-01-31 23:40:25 +08:00
parent 4e3356ccb2
commit 7e27ec488b
3 changed files with 171 additions and 25 deletions
+3 -1
View File
@@ -119,15 +119,17 @@ export const getCachedLyricInfo = async(musicInfo: LX.Music.MusicInfo): Promise<
// }
if (lrcInfo.lxlyric == null) {
switch (musicInfo.source) {
switch (musicInfo.source) { // 以下源支持lxlyric 重新获取
case 'kg':
case 'kw':
case 'mg':
case 'wy':
break
default:
return lrcInfo
}
} else if (lrcInfo.rlyric == null) {
// 以下源支持 rlyric 重新获取
if (!['wy', 'kg'].includes(musicInfo.source)) return lrcInfo
} else return lrcInfo
}