Use the --no-warnings option

This commit is contained in:
Pierre Rudloff 2014-03-28 21:23:20 +01:00
parent 78273d48fe
commit 441f45d6d7

View file

@ -124,7 +124,7 @@ Class VideoDownload
if (isset($format)) { if (isset($format)) {
$cmd .= ' -f '.escapeshellarg($format); $cmd .= ' -f '.escapeshellarg($format);
} }
$cmd .=' --dump-json '.escapeshellarg($url)." 2>&1"; $cmd .=' --no-warnings --dump-json '.escapeshellarg($url)." 2>&1";
exec( exec(
$cmd, $cmd,
$json, $code $json, $code