Created
October 21, 2017 15:05
-
-
Save RianWap/1bfa15d7e052b8eec257baa9ec98a904 to your computer and use it in GitHub Desktop.
yt downloader easy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(0); | |
/*menghilangkan pesan error*/ | |
/* | |
YouTube Downloader v0.03 | |
Author : RianWap ID | |
Facebook : www.facebook.com/rianwap.id | |
Date : 21/10/2017 | |
NOTE : unsupport copyright | |
*/ | |
$id=$_GET['v']; | |
if($_GET['name']){ | |
$name=$_GET['name']; | |
}else{ | |
$name='PHP Indonesia'; | |
} | |
if($_GET['v']){ | |
$id=$_GET['v']; | |
parse_str(file_get_contents('http://www.youtube.com/get_video_info?video_id='.$id.'&sts=&asv=3&el=detailpage'),$info); | |
$streams = explode(',',$info['url_encoded_fmt_stream_map']); | |
if($streams){ | |
foreach($streams as $streams){ | |
parse_str($streams, $str); | |
$type=$str['type']; | |
$type=str_replace('video/','',$type); | |
$type=explode(';',$type); | |
$type=$type[0]; | |
$url=$str['url']; | |
$url=explode('googlevideo.com/',$url); | |
$url='https://redirector.googlevideo.com/'.$url[1].''; | |
$itag=$str['itag']; | |
$quality=$str['quality']; | |
$qname='(RianWap ID)+'.$name.'';/*disini silahkan edit nama video dan nama situs kalian*/ | |
echo'<a href="'.$url.'&title='.$qname.'" target="_blank">['.$itag.'] - ['.$quality.'] - ['.$type.']</a><br/>'; | |
} | |
}else{ | |
echo'this videos may have a copyright protection'; | |
} | |
}else{ | |
echo'no ID videos'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment