Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 19, 2024
1 parent e76d9f8 commit 81826b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion objects/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,15 @@ public static function getYoutubeDl($videoURL, $queue_id, $destinationFile)
if ($return_val !== 0) {
//echo "\n**ERROR Youtube DL **".$code . "\n" . print_r($output, true);
error_log($cmd . "\n" . print_r($output, true));
return false;
$cmd = self::getYouTubeDLCommand() . " --no-check-certificate --force-ipv4 --no-playlist -k -o '{$tmpfname}.%(ext)s' {$videoURL}";
//echo "\n**Trying Youtube DL **".$cmd;
error_log("getYoutubeDl: Getting from Youtube other option DL {$cmd}");
exec($cmd . " 1> {$global['systemRootPath']}videos/{$queue_id}_tmpFile_downloadProgress.txt 2>&1", $output, $return_val);
if ($return_val !== 0) {
//echo "\n**ERROR Youtube DL **".$code . "\n" . print_r($output, true);
error_log($cmd . "\n" . print_r($output, true));
return false;
}
}
}
}
Expand Down

0 comments on commit 81826b4

Please sign in to comment.