Client-side M3U generation

Here's a bookmarklet that uses javascript to generate an M3U file from a page of linked MP3s without passing the page through a remote server: m3ugen

It only matches links ending in .mp3 at the moment, but should be easy to alter if you have links in a different format (ending in .php, for example).

If you use IE or Safari, or need to pick up more media types, try one of the bookmarklets on Playr's front page.

Comments

This is perfect, thank you.

No luck on IE. My guess is that the data: URI type isn't supported.

(who uses IE? ;)

i will use this. thank you.

Posted by: ivan on June 6, 2005 8:59 AM

this is awesome! haven't used a "bookmarklet" before though, so it took me a minute to figure out how to use.

For those with the same problem, i got it to work in firefox like this:

1. drag the "m3ugen" link into your bookmarks toolbar.
2. go to an mp3 blog (or any site with some mp3s)
3. Drag the m3ugen bookmarklet up to the URL bar.
4. now firefox should give you a popup to open the mp3s as an m3u file. sweet!

Posted by: gil3000 on June 7, 2005 2:03 AM

Anyone know how to modify the script to handle URL's with spaces? I tried muggling with it to do a search & replace to replace spaces with %20's to no avail. Something like s.replace(' ','%20').

I just updated the bookmarklet above, so it should handle spaces now (though I haven't got a page to test it on).

Works perfectly! Thanks a bunch. Send me your email address & I'll give you a login to my site.

Very nice, thank you !
I used the Greasemonkey Playlist script up till now,
which does not replace the spaces (but maybe that has been fixed now).
I'll disable it, as it causes a last line with
"data:audio/x-mpegurl,%23EXTM3U%0Ahttp:"...
(Maybe your script could reject such lines too.)
and it changes the appearance of the page.

Posted by: Soundsgood on November 30, 2005 6:38 PM

super dope shit yo. just what i was looking for

Posted by: watson on March 29, 2006 12:26 AM

I love it - thankyou so much!

Posted by: Ian on June 7, 2007 7:09 PM

This is fantastic, and just what i wanted!

Posted by: Tony on January 6, 2008 9:23 PM

works great thanks!

Posted by: Anonymous on January 29, 2008 9:39 PM

wow, that's perfect. Exactly what I required and have been strugling to achieve for a while.

Thank you so much!

Posted by: Liam on February 10, 2008 8:57 PM

All fields are optional, email address will not be shown; no HTML, URLs are automatically hyperlinked.