mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-29 10:56:18 +00:00
Added file content check when saving flac covers
This commit is contained in:
parent
93ec8cd967
commit
d2f493fce2
|
@ -211,7 +211,8 @@ function tagFLAC(path, track, save){
|
||||||
}
|
}
|
||||||
|
|
||||||
if (save.cover && track.album.embeddedCoverPath){
|
if (save.cover && track.album.embeddedCoverPath){
|
||||||
flac.importPicture(track.album.embeddedCoverPath)
|
let picture = fs.readFileSync(track.album.embeddedCoverPath)
|
||||||
|
if (picture.length != 0) flac.importPicture(picture)
|
||||||
}
|
}
|
||||||
|
|
||||||
flac.save()
|
flac.save()
|
||||||
|
|
Loading…
Reference in a new issue