diff --git a/objects/Encoder.php b/objects/Encoder.php index 15b5d4cd..06374b48 100644 --- a/objects/Encoder.php +++ b/objects/Encoder.php @@ -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; + } } } }