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)