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.
|
|
No, it should be => not ?> That code is obsolete anyway. Look at the code in the description. |
|
|
in the PHP in your first post should there really be a ?> in foreach($_GET as $key ?> $value) |
|
|
I will no longer be hosting the script on my server due to high traffic. Sorry. |
|
|
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. |
|
|
Thanks Nemanja. Updated the script again. The other one was bloated. This update should work in all cases, runs faster, and uses less code. |
|
|
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! |
|
|
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. |
|
|
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:
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.
