From 737d00f5502f9c3e2cb363befb151b269504aa73 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 13 Apr 2022 11:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AD=A3=E5=9C=A8=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84=E6=AD=8C=E6=9B=B2=E6=9A=82=E5=81=9C=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=90=8E=EF=BC=8C=E5=86=8D=E5=BC=80=E5=A7=8B=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=A8=8B=E5=BA=8F=E5=8D=A1=E6=AD=BB=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 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) {