diff --git a/objects/functionsFFMPEG.php b/objects/functionsFFMPEG.php index 7f095de2f1cd..84a5f15eb720 100644 --- a/objects/functionsFFMPEG.php +++ b/objects/functionsFFMPEG.php @@ -56,7 +56,7 @@ function convertVideoToMP3FileIfNotExists($videos_id, $forceTry = 0) $paths = Video::getPaths($video['filename']); $mp3HLSFile = "{$paths['path']}index.mp3"; $mp3File = "{$paths['path']}{$video['filename']}.mp3"; - if (file_exists($mp3HLSFile) || file_exists($mp3File)) { + if (!$forceTry && (file_exists($mp3HLSFile) || file_exists($mp3File))) { return Video::getSourceFile($video['filename'], ".mp3", true); } else { $f = convertVideoFileWithFFMPEGIsLockedInfo($mp3File);