├── 1.png ├── inc ├── 2.gif ├── 6.png ├── homebg.jpg ├── iconfont.eot ├── iconfont.ttf ├── iconfont.woff ├── iconfont.css ├── iconfont.js ├── QueryList.php └── 4.js ├── favicon.ico ├── 支持1080P-4k-直播版本.zip ├── tracks.php ├── embed ├── tracks.php ├── index.php └── upgrade.php ├── lang.conf.php ├── ajax ├── api.php ├── autocomplete.php └── ajax.php ├── link.php ├── thumbnail.php ├── error.php ├── footer.php ├── stream.php ├── search.php ├── README.md ├── header.php ├── downvideo.php ├── vs.php ├── channel.php ├── content.php ├── index.php ├── watch.php ├── YouTubeDownloader.php ├── lang ├── lang.ch.php └── lang.en.php ├── install.php └── lib.php /1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/1.png -------------------------------------------------------------------------------- /inc/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/inc/2.gif -------------------------------------------------------------------------------- /inc/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/inc/6.png -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/favicon.ico -------------------------------------------------------------------------------- /inc/homebg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/inc/homebg.jpg -------------------------------------------------------------------------------- /inc/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/inc/iconfont.eot -------------------------------------------------------------------------------- /inc/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/inc/iconfont.ttf -------------------------------------------------------------------------------- /inc/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/inc/iconfont.woff -------------------------------------------------------------------------------- /支持1080P-4k-直播版本.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hubs/you2php/master/支持1080P-4k-直播版本.zip -------------------------------------------------------------------------------- /tracks.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /embed/tracks.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | -------------------------------------------------------------------------------- /lang.conf.php: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /ajax/api.php: -------------------------------------------------------------------------------- 1 | getDownloadLinks($u); 12 | echo json_encode($links); 13 | } 14 | ?> -------------------------------------------------------------------------------- /link.php: -------------------------------------------------------------------------------- 1 | 0){ 4 | exit(); 5 | } 6 | $str=strdecode($_GET['u'],EN2DEKEY); 7 | if(stripos($str,'youtu.be')!==false || stripos($str,'watch?v=')!==false ){ 8 | preg_match("/^(?:http(?:s)?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'>]+)/", $str, $matches); 9 | $str='./watch.php?v='.$matches[1]; 10 | header("Location:$str"); 11 | }else{ 12 | header("Location:$str"); 13 | } 14 | ?> 15 | 16 | -------------------------------------------------------------------------------- /ajax/autocomplete.php: -------------------------------------------------------------------------------- 1 | 0&&isset($_GET["q"])){ 5 | $q=$_SERVER["QUERY_STRING"]; 6 | }else{ 7 | exit(); 8 | } 9 | 10 | $url='https://suggestqueries.google.com/complete/search?hl='.$lang['YT_LANG'].'&ds=yt&client=youtube&hjson=t&cp=1&'.$q; 11 | if (!function_exists("curl_init")) { 12 | $f = file_get_contents($url); 13 | } else { 14 | $ch = curl_init(); 15 | curl_setopt($ch, CURLOPT_URL, $url); 16 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 17 | curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); 18 | curl_setopt($ch, CURLOPT_REFERER, 'http://www.youtube.com/'); 19 | curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.91 Safari/534.30"); 20 | $f = curl_exec($ch); 21 | curl_close($ch); 22 | } 23 | echo $f; 24 | ?> 25 | -------------------------------------------------------------------------------- /thumbnail.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /embed/index.php: -------------------------------------------------------------------------------- 1 | 0){ header("Location: ../error.php"); exit();} include("../lib.php"); 3 | ?> 4 | 5 | 6 | 7 |
8 | 9 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |