diff --git a/api.php b/api.php index 89952c2..3b233b1 100644 --- a/api.php +++ b/api.php @@ -1,9 +1,9 @@ @@ -15,7 +15,7 @@ require_once 'download.php'; if (isset($_GET["url"])) { if (isset($_GET["format"]) || isset($_GET['audio'])) { $video = VideoDownload::getJSON($_GET["url"], $_GET["format"]); - + if (isset($video->url)) { //Vimeo needs a correct user-agent $UA = VideoDownload::getUA(); @@ -57,7 +57,7 @@ if (isset($_GET["url"])) { ); exit; } - + } else { if (isset($_GET['audio'])) { header( @@ -135,12 +135,12 @@ if (isset($_GET["url"])) { include 'logo.php'; ?>
You are going to download - + title; - ?>.
+ ?>. thumbnail, '" alt="" />'; ?>