From 8e7c655c93d3423fe47ac2fd6a56d5a9901fbf89 Mon Sep 17 00:00:00 2001 From: Timendum Date: Thu, 7 Jun 2018 11:39:12 +0200 Subject: [PATCH] Continue on error by default --- class/Downloader.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/class/Downloader.php b/class/Downloader.php index e69c7e9..84629ab 100644 --- a/class/Downloader.php +++ b/class/Downloader.php @@ -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";