diff --git a/publish/changeLog.md b/publish/changeLog.md index f6b06be3..15c41c55 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -24,6 +24,7 @@ - 修复使用Scheme URL搜索歌曲时,不会自动关闭播放详情页(若处于打开状态)的问题 - 修复换源失败时的处理问题 - 修复启用代理时,https请求可能被挂起或被转为http的问题 +- 修复正在下载的歌曲暂停任务后,再开始会导致程序卡死的问题 ### 变更 diff --git a/src/renderer/store/modules/download.js b/src/renderer/store/modules/download.js index 3aa9e885..6088538a 100644 --- a/src/renderer/store/modules/download.js +++ b/src/renderer/store/modules/download.js @@ -236,7 +236,7 @@ const saveMeta = function({ downloadInfo, filePath, isUseOtherSource, isEmbedPic : Promise.resolve(), ] Promise.all(tasks).then(([imgUrl, lyrics = {}]) => { - if (lyrics.lyric) lyrics.lyric = fixKgLyric(lyrics.lyric) + if (lyrics?.lyric) lyrics.lyric = fixKgLyric(lyrics.lyric) setMeta(filePath, { title: downloadInfo.metadata.musicInfo.name, artist: downloadInfo.metadata.musicInfo.singer, @@ -565,6 +565,7 @@ const actions = { if (!result) return downloadInfo = result } + commit('setStatus', { downloadInfo, status: downloadStatus.RUN }) let dl = dls[downloadInfo.key] if (dl) {