MP3 Search script not working anymore
Collapse
X
-
-
oh, there's a class that does this already? cool, i must see what it can do... cause if it's as good as i think, it'll be fire
Leave a comment:
-
ok, this is a long shot cause i can't code this, but i know how to make an mp3 search on a different approach entirely...
i dunno if anyone saw my post about gsearch... it was a basic html mod on google that adds a few elements to your search string... pretty much you can find almost anything, cause thanks to google you can search through indexed files...
now, the tricky part that i got no idea how to pull off... basically you gotta make a grabber kinda function that opens the links in the results n pulls all the a href links matching $format_of_choice
also checking if links start http:// and if not adding the server url as start of link...
Easy hey? lol but that won't fail once it's coded succesfully, unless google decides to block leechers, but since files not on their servers i doubt they will...
example of gsearch: G Search
hope this makes sense to you guys... cause if you can get that to work... most likely google will employ you, lol
Leave a comment:
-
Can someone share the working script here please I would be very grateful.
Thanks.
Leave a comment:
-
het firemax you said we should use 4shared API. please explain what this is?
Leave a comment:
-
You are awesome man!!!
Originally posted by firemax View Postif you have any problem,, simply update your download.php file to
please note: This is a temporary update for who using the old 4shared grabber script. For better results, you must use 4shared api.PHP Code:<?php
include("head.php");
ini_set('user_agent', 'mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.9.2) gecko/20100115 firefox/3.6 (.net clr 3.5.30729)');
$headere = array ('accept-language: En-us,en;q=0.7,de-de;q=0.3', 'accept: Text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_get['url'];
$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);
$content = file_get_contents($url);
$content=(string) $content;
$link=explode("html5player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];
function fsize($url){
$headers = get_headers ( $url, 1 );
$size=round($headers['content-length'] / (1024*1024), 2);
if($size){
return $size.' mb';
}
return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';
if(isset($_get['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
if(eregi($vid, $hasil)) { $media = 'video'; }
}
echo '<meta name="robots" content="noindex, nofollow, noarchive">';
echo '<br>to download file <font color="blue"><b>'.$name.'</b></font> please '.$final;
echo '<br /><a href="http://coding-talk.com/forum.php">search again</a><br />';
# if(eregi('.mp3', $final)) {
if($media == 'music') {
echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audiourl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playermode=embedded" />';
# echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audiourl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playermode=embedded" />';
}
}
include("foot.php");
?>
Leave a comment:
-
@firemax Bro pls do one more favor ...change script so that downloaded file name comes its orignal name not prevew.mp3
Leave a comment:
-
-
many many thanks bro
Originally posted by firemax View Postif you have any problem,, simply update your download.php file to
PHP Code:<?php
include("head.php");
ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)');
$headere = array ('Accept-Language: en-us,en;q=0.7,de-de;q=0.3', 'Accept: text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_GET['url'];
$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);
$content = file_get_contents($url);
$content=(string) $content;
$link=explode("Html5Player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];
function fsize($url){
$headers = get_headers ( $url, 1 );
$size=round($headers['Content-Length'] / (1024*1024), 2);
if($size){
return $size.' Mb';
}
return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';
if(isset($_GET['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
if(eregi($vid, $hasil)) { $media = 'video'; }
}
echo '<meta name="robots" content="noindex, nofollow, noarchive">';
echo '<br>To download file <font color="blue"><b>'.$name.'</b></font> please '.$final;
echo '<br /><a href="http://coding-talk.com/forum.php">Search Again</a><br />';
# if(eregi('.mp3', $final)) {
if($media == 'music') {
echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
# echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
}
}
include("foot.php");
?>Last edited by razib; 05.11.10, 13:32.
Leave a comment:
-
if you have any problem,, simply update your download.php file to
Please Note: This is a temporary update for who using the old 4shared grabber script. for better results, you must use 4shared API.PHP Code:<?php
include("head.php");
ini_set('user_agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)');
$headere = array ('Accept-Language: en-us,en;q=0.7,de-de;q=0.3', 'Accept: text/xml,text/javascript,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5');
$url = $_GET['url'];
$str = explode('/', $url);
$name = $str[6];
$name = str_replace('_',' ',$name);
$name = str_replace('html','mp3',$name);
$content = file_get_contents($url);
$content=(string) $content;
$link=explode("Html5Player('",$content);
$link=explode("'",$link[1]);
$link=$link[0];
function fsize($url){
$headers = get_headers ( $url, 1 );
$size=round($headers['Content-Length'] / (1024*1024), 2);
if($size){
return $size.' Mb';
}
return '';
}
$final = '<a style="color:#ff0000;text-decoration:none;" target="_blank" href="'.$link.'"><b>click here</b></a> '.fsize($link).' ';
if(isset($_GET['url'])) {
$music = array('.mp3', '.wma', '.wav', '.m4a');
$video = array('.flv', '.wmv', '.rm', '.mp4', '.3gp');
foreach($music as $mus) {
if(eregi($mus, $hasil)) { $media = 'music'; }
}
foreach($video as $vid) {
if(eregi($vid, $hasil)) { $media = 'video'; }
}
echo '<meta name="robots" content="noindex, nofollow, noarchive">';
echo '<br>To download file <font color="blue"><b>'.$name.'</b></font> please '.$final;
echo '<br /><a href="index.php">Search Again</a><br />';
# if(eregi('.mp3', $final)) {
if($media == 'music') {
echo '<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" volume="60" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
# echo '<embed type="application/x-shockwave-flash" src="http://users6.nofeehost.com/gondes/mp3player.swf?audioUrl='.$hasil.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#000000" wmode="window" flashvars="playerMode=embedded" />';
}
}
include("foot.php");
?>Last edited by firemax; 05.11.10, 14:28.
Leave a comment:
Leave a comment: