Merge pull request #3529 from asoluter/patch-1

Fix "Extract Cover Error" for files with multiple embedded covers
This commit is contained in:
advplyr 2024-10-17 16:44:58 -05:00 committed by GitHub
commit 1c15007e32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ async function extractCoverArt(filepath, outputpath) {
return new Promise((resolve) => {
/** @type {import('../libs/fluentFfmpeg/index').FfmpegCommand} */
var ffmpeg = Ffmpeg(filepath)
ffmpeg.addOption(['-map 0:v', '-frames:v 1'])
ffmpeg.addOption(['-map 0:v:0', '-frames:v 1'])
ffmpeg.output(outputpath)
ffmpeg.on('start', (cmd) => {