Add more debug output

This commit is contained in:
2022-08-15 01:43:41 +02:00
parent ea2bfb6fa5
commit c0cf7a90b6

1
index.php Executable file → Normal file
View File

@ -89,6 +89,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') {
}
set_time_limit(0);
echo '[system] Executing' . 'youtube-dl ' . $option['option']. ' ' . $url . "\r\n";
system('youtube-dl ' . $option['option']. ' ' . $url . ' 2>&1', $exitCode);
die('exit code: ' . $exitCode);
}