diff --git a/class/Downloader.php b/class/Downloader.php index 94623ab..8fa1e53 100644 --- a/class/Downloader.php +++ b/class/Downloader.php @@ -306,7 +306,12 @@ class Downloader $cmd .= " | python -m json.tool"; } - return shell_exec($cmd); + $soutput = shell_exec($cmd); + if (!$soutput) + { + $this->errors[] = "No video found"; + } + return $soutput; } } diff --git a/info.php b/info.php index a5dc7ff..92130e8 100644 --- a/info.php +++ b/info.php @@ -14,11 +14,6 @@ } else { - if(isset($_GET['kill']) && !empty($_GET['kill']) && $_GET['kill'] === "all") - { - Downloader::kill_them_all(); - } - $json = False; if(isset($_POST['urls']) && !empty($_POST['urls']))