修复正在下载的歌曲暂停任务后,再开始会导致程序卡死的问题
parent
68798a9627
commit
737d00f550
|
@ -24,6 +24,7 @@
|
||||||
- 修复使用Scheme URL搜索歌曲时,不会自动关闭播放详情页(若处于打开状态)的问题
|
- 修复使用Scheme URL搜索歌曲时,不会自动关闭播放详情页(若处于打开状态)的问题
|
||||||
- 修复换源失败时的处理问题
|
- 修复换源失败时的处理问题
|
||||||
- 修复启用代理时,https请求可能被挂起或被转为http的问题
|
- 修复启用代理时,https请求可能被挂起或被转为http的问题
|
||||||
|
- 修复正在下载的歌曲暂停任务后,再开始会导致程序卡死的问题
|
||||||
|
|
||||||
### 变更
|
### 变更
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@ const saveMeta = function({ downloadInfo, filePath, isUseOtherSource, isEmbedPic
|
||||||
: Promise.resolve(),
|
: Promise.resolve(),
|
||||||
]
|
]
|
||||||
Promise.all(tasks).then(([imgUrl, lyrics = {}]) => {
|
Promise.all(tasks).then(([imgUrl, lyrics = {}]) => {
|
||||||
if (lyrics.lyric) lyrics.lyric = fixKgLyric(lyrics.lyric)
|
if (lyrics?.lyric) lyrics.lyric = fixKgLyric(lyrics.lyric)
|
||||||
setMeta(filePath, {
|
setMeta(filePath, {
|
||||||
title: downloadInfo.metadata.musicInfo.name,
|
title: downloadInfo.metadata.musicInfo.name,
|
||||||
artist: downloadInfo.metadata.musicInfo.singer,
|
artist: downloadInfo.metadata.musicInfo.singer,
|
||||||
|
@ -565,6 +565,7 @@ const actions = {
|
||||||
if (!result) return
|
if (!result) return
|
||||||
downloadInfo = result
|
downloadInfo = result
|
||||||
}
|
}
|
||||||
|
commit('setStatus', { downloadInfo, status: downloadStatus.RUN })
|
||||||
|
|
||||||
let dl = dls[downloadInfo.key]
|
let dl = dls[downloadInfo.key]
|
||||||
if (dl) {
|
if (dl) {
|
||||||
|
|
Loading…
Reference in New Issue