Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

muxtape downloader 2

This downloads muxtape songs

This is an alteration to the original script by Nemanja Stefanovic which allows you to download directly. I didn't like the way the original script directed the current page to the mp3 and then you had to click file>save. This does involve an external PHP script hosted on my site, so if you are paranoid you can host the PHP script on your own web server. The PHP code is:

list($name, $link) = split('&link=', $_SERVER['QUERY_STRING']);
$name = urldecode(html_entity_decode(substr($name, 5)));
$link = urldecode($link);

header('Content-type: audio/mpeg');
header('Content-Disposition: attachment; filename="'.$name.'.mp3"');
readfile($link);

If you end up hosting the PHP script yourself you will need to change line 42 in the GM script to reflect the new server.




May 2, 2008
Michael Pardo Script's author

No, it should be => not ?>

That code is obsolete anyway. Look at the code in the description.


 
Apr 29, 2008
Good To Too User

in the PHP in your first post should there really be a

?>

in

foreach($_GET as $key ?> $value)


 
Apr 25, 2008
Michael Pardo Script's author

I will no longer be hosting the script on my server due to high traffic. Sorry.


 
Apr 21, 2008
Michael Pardo Script's author

I know what you mean about the external service too... that's why I put the PHP script source up. I have it running on my wamp server.


 
Apr 21, 2008
Michael Pardo Script's author

Thanks Nemanja. Updated the script again. The other one was bloated. This update should work in all cases, runs faster, and uses less code.


 
Apr 20, 2008
Nemanja Stef... Scriptwright

Very nice Michael! I thought of doing something similar as there really doesn't seem to be a Javascript solution to this but wasn't sure if people would like using an external service.

Good job!


 
Apr 20, 2008
Michael Pardo Script's author

Note:

I noticed some buggy stuff in the names when it saved if there was an ampersand in the title. I did a little work around for now until I spend the time to figure out the real problem. The update is only in the PHP code above.


 
Apr 20, 2008
Michael Pardo Script's author

This is an alteration to the original script by Nemanja Stefanovic which allows you to download directly. I didn't like the way the original script directed the current page to the mp3 and then you had to click file>save. This does involve an external PHP script hosted on my site, so if you are paranoid you can host the PHP script on your own web server. The PHP code is:


<?php header('Content-type: audio/mpeg'); header('Content-Disposition: attachment; filename="'.$_GET['name'].'.mp3"'); foreach($_GET as $key ?> $value)
{
if($key != 'name')
{
if($key != 'link') $link .= '&'.$key.'=';
$link .= $value;
}
}

readfile($link);
?>

If you end up hosting the PHP script yourself you will need to change line 42 in the GM script to reflect the new server.


You could comment on this script if you were logged in.