Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9760#issuecomment-2582304683
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jan 10, 2025
1 parent 7bbaf84 commit 018f5d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objects/functionsFFMPEG.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function convertVideoToMP3FileIfNotExists($videos_id, $forceTry = 0)
if (file_exists($mp3HLSFile) || file_exists($mp3File)) {
$global['convertVideoToMP3FileIfNotExistsSteps'][] = "MP3 file already exists";
$global['convertVideoToMP3FileIfNotExistsFileAlreadyExists'] = true; // Indicate that the file already exists
return true; // Treat as successful since the file exists
return Video::getSourceFile($video['filename'], ".mp3", true); // Treat as successful since the file exists
} else {
$f = convertVideoFileWithFFMPEGIsLockedInfo($mp3File);
if ($f['isUnlocked']) {
Expand All @@ -100,7 +100,7 @@ function convertVideoToMP3FileIfNotExists($videos_id, $forceTry = 0)

if (file_exists($mp3File)) {
$global['convertVideoToMP3FileIfNotExistsSteps'][] = "MP3 file successfully created";
return true; // Conversion successful
return Video::getSourceFile($video['filename'], ".mp3", true); // Conversion successful
} else {
$global['convertVideoToMP3FileIfNotExistsSteps'][] = "MP3 file creation failed: File does not exist";
_error_log("convertVideoToMP3FileIfNotExists: file not exists {$mp3File}");
Expand Down

0 comments on commit 018f5d1

Please sign in to comment.