From cacf39da697fe2ad0b636b7399e9746484cec05f Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 9 Sep 2019 08:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E7=A7=BB=E9=99=A4FLAC?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=9A=84meta=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/core/Player.vue | 3 ++- src/renderer/store/modules/download.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/core/Player.vue b/src/renderer/components/core/Player.vue index 1860d58a..1d3ac6ad 100644 --- a/src/renderer/components/core/Player.vue +++ b/src/renderer/components/core/Player.vue @@ -195,7 +195,7 @@ export default { if (!this.musicInfo.songmid) return console.log('出错') this.stopPlay() - if (this.audio.error.code !== 1 && this.retryNum < 3) { // 若音频URL无效则尝试刷新3次URL + if (this.listId != 'download' && this.audio.error.code !== 1 && this.retryNum < 3) { // 若音频URL无效则尝试刷新3次URL // console.log(this.retryNum) this.audioErrorTime = this.audio.currentTime // 记录出错的播放时间 this.retryNum++ @@ -263,6 +263,7 @@ export default { this.audioErrorTime = 0 if (this.listId == 'download') { + console.log(targetSong.filePath) if (!checkPath(targetSong.filePath) || !targetSong.isComplate || /\.ape$/.test(targetSong.filePath)) { return this.list.length == 1 ? null : this.handleNext() } diff --git a/src/renderer/store/modules/download.js b/src/renderer/store/modules/download.js index 5a61b6e5..430143ba 100644 --- a/src/renderer/store/modules/download.js +++ b/src/renderer/store/modules/download.js @@ -83,7 +83,7 @@ const getUrl = (downloadInfo, isRefresh) => { * @param {*} isEmbedPic */ const saveMeta = (downloadInfo, filePath, isEmbedPic) => { - if (downloadInfo.type === 'ape') return + if (downloadInfo.type === 'ape' || downloadInfo.type === 'flac') return const promise = isEmbedPic ? downloadInfo.musicInfo.img ? Promise.resolve(downloadInfo.musicInfo.img)