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.
This is perfect, thank you.
Posted by: Andy Baio on June 4, 2005 4:39 PMNo luck on IE. My guess is that the data: URI type isn't supported.
Posted by: Lucas Gonze on June 5, 2005 12:34 AM(who uses IE? ;)
Posted by: victor on June 6, 2005 7:39 AMi will use this. thank you.
Posted by: ivan on June 6, 2005 8:59 AMthis 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!
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').
Posted by: cfinn on October 5, 2005 6:26 PMI just updated the bookmarklet above, so it should handle spaces now (though I haven't got a page to test it on).
Posted by: alf on October 5, 2005 6:39 PMWorks perfectly! Thanks a bunch. Send me your email address & I'll give you a login to my site.
Posted by: cfinn on October 5, 2005 6:43 PMVery 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.
Superb!
Posted by: Marco Raaphorst on February 18, 2006 9:37 AMsuper dope shit yo. just what i was looking for
Posted by: watson on March 29, 2006 12:26 AMI love it - thankyou so much!
Posted by: Ian on June 7, 2007 7:09 PMThis is fantastic, and just what i wanted!
Posted by: Tony on January 6, 2008 9:23 PMworks great thanks!
Posted by: on January 29, 2008 9:39 PMwow, 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 PMAll fields are optional, email address will not be shown; no HTML, URLs are automatically hyperlinked.

Comments