mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
* issues #1019 的迫真修复 * 修复 issues #1019 * 修复 issues #1019 * 改回 pickedLyric() 逻辑 * 更进一步的避免取词卡死问题 * 更新网易云 api 到 4.2.0 * Update README.md * Revert "Update README.md" This reverts commit b862ef7d4dabd40c8fe57e4837fc6220806a1456. * Update lyrics.vue * 过滤歌词
This commit is contained in:
parent
47862d6710
commit
4a99f31aed
1 changed files with 5 additions and 2 deletions
|
|
@ -200,10 +200,13 @@ export default {
|
|||
if (this.lyric === undefined) return '';
|
||||
let lyric = this.lyric.split('\n');
|
||||
lyric = lyric.filter(l => {
|
||||
if (l.includes('纯音乐,请欣赏')) {
|
||||
if (l.includes('作词') || l.includes('作曲')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
let lineIndex = randomNum(0, lyric.length - 1);
|
||||
while (lineIndex + 4 > lyric.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue