1
0
mirror of https://github.com/Rudloff/alltube.git synced 2024-06-26 07:29:06 +02:00
alltube/json.php

21 lines
522 B
PHP
Raw Normal View History

2014-03-13 20:07:56 +01:00
<?php
/**
* 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 10:47:46 +01:00
* @author Pierre Rudloff <contact@rudloff.pro>
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
* @link http://rudloff.pro
* */
2014-03-13 20:07:56 +01:00
require_once 'download.php';
if (isset($_GET["url"])) {
header('Content-Type: application/json');
$video = VideoDownload::getJSON($_GET["url"]);
2014-03-28 20:35:32 +01:00
echo json_encode($video);
2014-03-13 20:07:56 +01:00
}
?>