From b127a1e98c5c595ff92b87f4e6a02a743edcfb39 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 26 Jan 2024 16:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=81=E9=9D=A2=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=B5=8C=E5=85=A5=E5=90=8E=E6=B2=A1=E6=9C=89=E8=A2=AB?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/utils/musicMeta/mp3Meta.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/utils/musicMeta/mp3Meta.js b/src/common/utils/musicMeta/mp3Meta.js index 1f768791e2..aae255421e 100644 --- a/src/common/utils/musicMeta/mp3Meta.js +++ b/src/common/utils/musicMeta/mp3Meta.js @@ -1,6 +1,6 @@ const NodeID3 = require('node-id3') const path = require('path') -// const fs = require('fs') +const fs = require('fs') const download = require('./downloader') const extReg = /^(\.(?:jpe?g|png)).*$/ @@ -30,9 +30,9 @@ module.exports = (filePath, meta) => { if (success) { meta.APIC = picPath handleWriteMeta(meta, filePath) - // fs.unlink(picPath, err => { - // if (err) console.log(err.message) - // }) + fs.unlink(picPath, err => { + if (err) console.log(err.message) + }) } else { delete meta.APIC handleWriteMeta(meta, filePath)