暂时移除FLAC格式的meta信息修改

pull/96/head
lyswhut 2019-09-09 08:26:18 +08:00
parent 4dc7937321
commit cacf39da69
2 changed files with 3 additions and 2 deletions

View File

@ -195,7 +195,7 @@ export default {
if (!this.musicInfo.songmid) return
console.log('出错')
this.stopPlay()
if (this.audio.error.code !== 1 && this.retryNum < 3) { // URL3URL
if (this.listId != 'download' && this.audio.error.code !== 1 && this.retryNum < 3) { // URL3URL
// 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()
}

View File

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