mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-15 11:54:56 +02:00
Fix Extract Cover Error for files with multiple embedded covers
This commit is contained in:
parent
f2102a0a23
commit
d668462529
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ async function extractCoverArt(filepath, outputpath) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
/** @type {import('../libs/fluentFfmpeg/index').FfmpegCommand} */
|
/** @type {import('../libs/fluentFfmpeg/index').FfmpegCommand} */
|
||||||
var ffmpeg = Ffmpeg(filepath)
|
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.output(outputpath)
|
||||||
|
|
||||||
ffmpeg.on('start', (cmd) => {
|
ffmpeg.on('start', (cmd) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue