Continue on error by default

This commit is contained in:
Timendum 2018-06-07 11:39:12 +02:00
parent 0bdc0e7b50
commit 8e7c655c93

View file

@ -260,7 +260,7 @@ class Downloader
private function do_download($audio_only)
{
$cmd = "youtube-dl";
$cmd .= " -o ".$this->download_path."/";
$cmd .= " --ignore-error -o ".$this->download_path."/";
$cmd .= escapeshellarg($this->outfilename);
if ($this->vformat)
@ -272,13 +272,11 @@ class Downloader
{
$cmd .= " -x ";
}
$cmd .= " --restrict-filenames"; // --restrict-filenames is for specials chars
foreach($this->urls as $url)
{
$cmd .= " ".escapeshellarg($url);
}
$cmd .= " --restrict-filenames"; // --restrict-filenames is for specials chars
if($this->config["log"])
{
$cmd .= " > ".$this->log_path."/$(date +\"%Y-%m-%d_%H-%M-%S-%N\").txt";