Redirect script
This commit is contained in:
parent
efecf60543
commit
1190f5efa0
1 changed files with 19 additions and 0 deletions
19
redirect.php
Normal file
19
redirect.php
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* PHP web interface for youtube-dl (http://rg3.github.com/youtube-dl/)
|
||||||
|
* Redirect to video in best format
|
||||||
|
*
|
||||||
|
* PHP Version 5.3.10
|
||||||
|
*
|
||||||
|
* @category Youtube-dl
|
||||||
|
* @package Youtubedl
|
||||||
|
* @author Pierre Rudloff <contact@rudloff.pro>
|
||||||
|
* @license GNU General Public License http://www.gnu.org/licenses/gpl.html
|
||||||
|
* @link http://rudloff.pro
|
||||||
|
* */
|
||||||
|
require_once 'common.php';
|
||||||
|
require_once 'download.php';
|
||||||
|
if (isset($_GET["url"])) {
|
||||||
|
$video = VideoDownload::getURL($_GET["url"]);
|
||||||
|
header('Location: '.$video['url']);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue