1
0
mirror of https://github.com/Rudloff/alltube.git synced 2024-06-21 06:56:40 +02:00
alltube/redirect.php

20 lines
533 B
PHP
Raw Normal View History

2015-08-06 20:58:21 +02:00
<?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']);
}