From c48921990d8b4db276a031226875b871d39a3ebb Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 13 Feb 2022 14:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=9A=84=E6=AD=8C=E8=AF=8D=E6=8D=A2=E6=BA=90=E6=97=B6?= =?UTF-8?q?=E4=BC=9A=E8=BF=9B=E5=85=A5=E6=AD=BB=E5=BE=AA=E7=8E=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/renderer/store/modules/download.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 70586dbf..f308c879 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -13,6 +13,7 @@ - 修复排行榜名字右击菜单的播放功能在播放非激活的列表时的列表获取问题 - 修复修改列表名时无法使用`Ctrl`键的问题 - 修复wy源某些歌曲获取歌词翻译的问题处理 +- 修复下载功能的歌词换源时会进入死循环的问题 ### 其他 diff --git a/src/renderer/store/modules/download.js b/src/renderer/store/modules/download.js index d344076c..3d0a8fb4 100644 --- a/src/renderer/store/modules/download.js +++ b/src/renderer/store/modules/download.js @@ -162,6 +162,7 @@ const handleGetLyric = function(musicInfo, retryedSource = [], originMusic) { reqPromise = Promise.reject(err) } return reqPromise.catch(err => { + // console.log(err) if (!retryedSource.includes(musicInfo.source)) retryedSource.push(musicInfo.source) return this.dispatch('list/getOtherSource', originMusic).then(otherSource => { console.log('find otherSource', otherSource) @@ -169,7 +170,7 @@ const handleGetLyric = function(musicInfo, retryedSource = [], originMusic) { for (const item of otherSource) { if (retryedSource.includes(item.source)) continue console.log('try toggle to: ', item.source, item.name, item.singer, item.interval) - return getLyric.call(this, item, retryedSource, originMusic) + return handleGetLyric.call(this, item, retryedSource, originMusic) } } return Promise.reject(err)