修复正在下载的歌曲暂停任务后,再开始会导致程序卡死的问题

pull/930/merge
lyswhut 2022-04-13 11:08:29 +08:00
parent 68798a9627
commit 737d00f550
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@
- 修复使用Scheme URL搜索歌曲时不会自动关闭播放详情页若处于打开状态的问题
- 修复换源失败时的处理问题
- 修复启用代理时https请求可能被挂起或被转为http的问题
- 修复正在下载的歌曲暂停任务后,再开始会导致程序卡死的问题
### 变更

View File

@ -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) {