Skip to content

Commit

Permalink
修复封面图片嵌入后没有被删除的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Jan 26, 2024
1 parent b0a9cd7 commit b127a1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/utils/musicMeta/mp3Meta.js
Original file line number Diff line number Diff line change
@@ -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)).*$/

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b127a1e

Please sign in to comment.