2014-03-13 19:07:56 +00:00
|
|
|
<?php
|
2014-07-05 10:45:24 +00:00
|
|
|
/**
|
|
|
|
* PHP web interface for youtube-dl (http://rg3.github.com/youtube-dl/)
|
|
|
|
* JSON API
|
|
|
|
*
|
|
|
|
* PHP Version 5.3.10
|
|
|
|
*
|
|
|
|
* @category Youtube-dl
|
|
|
|
* @package Youtubedl
|
2015-01-07 09:47:46 +00:00
|
|
|
* @author Pierre Rudloff <contact@rudloff.pro>
|
2014-07-05 10:45:24 +00:00
|
|
|
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
|
|
|
|
* @link http://rudloff.pro
|
|
|
|
* */
|
2015-04-19 11:16:54 +00:00
|
|
|
require_once 'common.php';
|
2014-03-13 19:07:56 +00:00
|
|
|
require_once 'download.php';
|
|
|
|
if (isset($_GET["url"])) {
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
$video = VideoDownload::getJSON($_GET["url"]);
|
2014-03-28 19:35:32 +00:00
|
|
|
echo json_encode($video);
|
2014-03-13 19:07:56 +00:00
|
|
|
}
|