Sada
11-17-2011, 01:26 AM
6. youtube.com (Updated: 7 Sep 2011)1
اینم برای یوتوب : برا من سه سوت مستقیم میکنه شما چطور:D
youtube_com.php
<?php
if (preg_match('#^http://([a-z0-9]+)\.youtube\.com/#', $url) || preg_match('#^http://youtube\.com/#', $url)){
########################
# Get YouTube url Page #
########################
$data = $this->curl("$url","","");
//echo "<br><br>data = " . $data;
###################
# Start Debugging #
###################
if(strstr($data,'verify-age-thumb'))
{
$this->error = "Adult Video Detected";
}
if(strstr($data,'das_captcha'))
{
$this->error = "Captcha Found. Please run on different server";
}
if(!preg_match('/stream_map=(.[^&]*?)&/i',$data,$match))
{
$this->error = "Error Locating Downlod URL's";
}
echo $this->error;
#################
# End Debugging #
#################
################################################## ##################
# Get the highest quality video available #
# Extract URL, filename and filesize variables from generated page #
################################################## ##################
if(preg_match('/stream_map=(.[^&]*?)&/i',$data,$match))
{
$fmt_url = urldecode($match[1]);
//echo "<br><br>fmt_url = " . $fmt_url;
}
if(preg_match('/^(.*?)\\\\u0026/',$fmt_url,$match))
{
$fmt_url = $match[1];
//echo "<br><br>fmt_url = " . $fmt_url;
}
$urls = explode(',',$fmt_url);
$foundArray = array();
foreach($urls as $url)
{
if(preg_match('/url=(.*?)&.*?itag=([0-9]+)/si',$url,$um))
{
$u = urldecode($um[1]);
$foundArray[$um[2]] = $u;
}
}
preg_match('<meta name="title" content="(.*?)">', $data, $matches);
$title = $matches[1];
if ($foundArray[13]) {
$URL=$foundArray[13];
$filename = $title . ".3gp";
}
if ($foundArray[17]) {
$URL=$foundArray[17];
$filename = $title . ".3gp";
}
if ($foundArray[36]) {
$URL=$foundArray[36];
$filename = $title . ".3gp";
}
if ($foundArray[5]) {
$URL=$foundArray[5];
$filename = $title . ".flv";
}
if ($foundArray[6]) {
$URL=$foundArray[6];
$filename = $title . ".flv";
}
if ($foundArray[34]) {
$URL=$foundArray[34];
$filename = $title . ".flv";
}
if ($foundArray[35]) {
$URL=$foundArray[35];
$filename = $title . ".flv";
}
if ($foundArray[18]) {
$URL=$foundArray[18];
$filename = $title . ".mp4";
}
if ($foundArray[22]) {
$URL=$foundArray[22];
$filename = $title . ".mp4";
}
if ($foundArray[37]) {
$URL=$foundArray[37];
$filename = $title . ".mp4";
}
//echo "<br><br>filename = " . $filename;
$filesize = JTools::remote_size($URL, $this->cookies);
//echo "<br><br>filesize = " . $filesize;
}
# plugin by afterburnerleech.com (7 Sep 2011)
?>
حالا فایل index.php را به شکل زیر به انتهای ان یوتوپ را اضافه کنید.
index.php
function site_hash($url){
if(strpos($url,"rapidshare.com")) $site = "RS"; //rename_prefix
else if(strpos($url,"megaupload.com")) $site = "MU";
else if(strpos($url,"filefactory.com")) $site = "FF";
else if(strpos($url,"fileserve.com")) $site = "FS";
else if(strpos($url,"hotfile.com")) $site = "HF";
else if(strpos($url,"megavideo.com")) $site = "MV";
else if(strpos($url,"netload.in")) $site = "NL";
else if(strpos($url,"filesonic.com")) $site = "FSN";
else if(strpos($url,"depositfiles.com"))$site = "DF";
else if(strpos($url,"uploading.com"))$site = "ULD";
else if(strpos($url,"easy-share.com")) $site = "E-S";
else if(strpos($url,"filesonic")) $site = "FSN";
else if(strpos($url,"uploaded.to")) $site = "uploaded";
else if(strpos($url,"megashares.com")) $site = "MGS";
else if(strpos($url,"gigasize.com")) $site = "gigasize";
else if(strpos($url,"bitshare.com")) $site = "bitshare";
else if(strpos($url,"mediafire.com")) $site = "MF";
else if(strpos($url,"youtube.com")) $site = "youtube";
else {
$schema = parse_url($url);
$site = $schema['host'];
}
return $site;
}
فایل اماده را از ضمیمه دانلود کنید.
پلاگین های جدید را به پوشه hosts کپی کنید.
به تاریخ پلاگین ها توجه کنید.
اینم برای یوتوب : برا من سه سوت مستقیم میکنه شما چطور:D
youtube_com.php
<?php
if (preg_match('#^http://([a-z0-9]+)\.youtube\.com/#', $url) || preg_match('#^http://youtube\.com/#', $url)){
########################
# Get YouTube url Page #
########################
$data = $this->curl("$url","","");
//echo "<br><br>data = " . $data;
###################
# Start Debugging #
###################
if(strstr($data,'verify-age-thumb'))
{
$this->error = "Adult Video Detected";
}
if(strstr($data,'das_captcha'))
{
$this->error = "Captcha Found. Please run on different server";
}
if(!preg_match('/stream_map=(.[^&]*?)&/i',$data,$match))
{
$this->error = "Error Locating Downlod URL's";
}
echo $this->error;
#################
# End Debugging #
#################
################################################## ##################
# Get the highest quality video available #
# Extract URL, filename and filesize variables from generated page #
################################################## ##################
if(preg_match('/stream_map=(.[^&]*?)&/i',$data,$match))
{
$fmt_url = urldecode($match[1]);
//echo "<br><br>fmt_url = " . $fmt_url;
}
if(preg_match('/^(.*?)\\\\u0026/',$fmt_url,$match))
{
$fmt_url = $match[1];
//echo "<br><br>fmt_url = " . $fmt_url;
}
$urls = explode(',',$fmt_url);
$foundArray = array();
foreach($urls as $url)
{
if(preg_match('/url=(.*?)&.*?itag=([0-9]+)/si',$url,$um))
{
$u = urldecode($um[1]);
$foundArray[$um[2]] = $u;
}
}
preg_match('<meta name="title" content="(.*?)">', $data, $matches);
$title = $matches[1];
if ($foundArray[13]) {
$URL=$foundArray[13];
$filename = $title . ".3gp";
}
if ($foundArray[17]) {
$URL=$foundArray[17];
$filename = $title . ".3gp";
}
if ($foundArray[36]) {
$URL=$foundArray[36];
$filename = $title . ".3gp";
}
if ($foundArray[5]) {
$URL=$foundArray[5];
$filename = $title . ".flv";
}
if ($foundArray[6]) {
$URL=$foundArray[6];
$filename = $title . ".flv";
}
if ($foundArray[34]) {
$URL=$foundArray[34];
$filename = $title . ".flv";
}
if ($foundArray[35]) {
$URL=$foundArray[35];
$filename = $title . ".flv";
}
if ($foundArray[18]) {
$URL=$foundArray[18];
$filename = $title . ".mp4";
}
if ($foundArray[22]) {
$URL=$foundArray[22];
$filename = $title . ".mp4";
}
if ($foundArray[37]) {
$URL=$foundArray[37];
$filename = $title . ".mp4";
}
//echo "<br><br>filename = " . $filename;
$filesize = JTools::remote_size($URL, $this->cookies);
//echo "<br><br>filesize = " . $filesize;
}
# plugin by afterburnerleech.com (7 Sep 2011)
?>
حالا فایل index.php را به شکل زیر به انتهای ان یوتوپ را اضافه کنید.
index.php
function site_hash($url){
if(strpos($url,"rapidshare.com")) $site = "RS"; //rename_prefix
else if(strpos($url,"megaupload.com")) $site = "MU";
else if(strpos($url,"filefactory.com")) $site = "FF";
else if(strpos($url,"fileserve.com")) $site = "FS";
else if(strpos($url,"hotfile.com")) $site = "HF";
else if(strpos($url,"megavideo.com")) $site = "MV";
else if(strpos($url,"netload.in")) $site = "NL";
else if(strpos($url,"filesonic.com")) $site = "FSN";
else if(strpos($url,"depositfiles.com"))$site = "DF";
else if(strpos($url,"uploading.com"))$site = "ULD";
else if(strpos($url,"easy-share.com")) $site = "E-S";
else if(strpos($url,"filesonic")) $site = "FSN";
else if(strpos($url,"uploaded.to")) $site = "uploaded";
else if(strpos($url,"megashares.com")) $site = "MGS";
else if(strpos($url,"gigasize.com")) $site = "gigasize";
else if(strpos($url,"bitshare.com")) $site = "bitshare";
else if(strpos($url,"mediafire.com")) $site = "MF";
else if(strpos($url,"youtube.com")) $site = "youtube";
else {
$schema = parse_url($url);
$site = $schema['host'];
}
return $site;
}
فایل اماده را از ضمیمه دانلود کنید.
پلاگین های جدید را به پوشه hosts کپی کنید.
به تاریخ پلاگین ها توجه کنید.