Monday, August 29, 2005

radio.blog and mp3player.swf

How to download the mp3's that are in radio.blog playlists
(and also for mp3player.swf)

radio.blog has a nifty flash player that you can download for free.
I've had trouble with some sites when playing their songs; the server is just too slow. So I was wondering if I could just grab the songs directly...

Instructions to install and use this player are here.

After reading the installation instructions, I knew that the player's configuration file is called config.xml, located in the same directory as the flash player radioblog.swf. In config.xml, the playlist path attribute points to the playlist, for example

<playlist path="sounds/playlist.php"/>

Looking in the playlist file, you'll see entries like this:

<track trackMod="1120918032"
title="01 5'Nizza - Surnaya"
path="sounds/01 5'Nizza - Surnaya.rbs"/>
;

The .rbs files are actually mp3's.

ExampleTake a radio.blog player from a popular mp3 blog as an example, .PLAY . PAUSE. -- http://playpause.free.fr/radio.blog/index.php. The embeded player is in the same directory as the page:

<embed src="radioblog.swf?autoplay=" ...

which means that the config file is http://playpause.free.fr/radio.blog/config.xml. The playlist node in config.xml says that the playlist is located at http://playpause.free.fr/radio.blog/sounds/playlist.php.

The playlists are also XML data; for this site the playlist is

<tracks>
<track trackMod="1120918032"
title="01 5'Nizza - Surnaya"
path="sounds/01 5'Nizza - Surnaya.rbs"/>
<track trackMod="1120917984"
title="02 Towa Tei - Bianco (feat. Arto Lindsay)"
path="sounds/02 Towa Tei - Bianco (feat. Arto Lindsay).rbs"/>
...

<track trackMod="1120917027"
title="14 Rocio Durcal - Amor eterno"
path="sounds/14 Rocio Durcal - Amor eterno.rbs"/>
</tracks>

The first song in the playlist is found at

http://playpause.free.fr/radio.blog/sounds/01 5'Nizza - Surnaya.rbs.

Winamp can play this song directly.

FLASH!
.PLAY . PAUSE. no longer features radio.blog, they're now using a new flash player called mp3player.swf
http://www.playpause.net/flash_mp3_player/mp3player.swf.

Using a flash decompiler, I found that the playlist file is called mp3player.xml, locatated in the player's home directory http://www.playpause.net/flash_mp3_player/mp3player.xml. The file's are located in the mp3 directory, the XML defines the file names and song titles:
<?xml version="1.0" encoding="UTF-8"?>
<
player showDisplay="yes" showPlaylist="yes" autoStart="yes">
<
song path="mp3/01.mp3" title ="Music Hall : Roger Roger" />
<
song path="mp3/02.mp3" title ="I Am Music : Common featuring Jill Scott" />
<
song path="mp3/03.mp3" title ="Music : Leela James" />
<
song path="mp3/04.mp3" title ="I Am Music : Timbaland & Magoo featuring Aaliyah & Static (from Playa)" />
<
song path="mp3/05.mp3" title ="Music Selector Is The Soul Reflector : Deee-Lite" />
<
song path="mp3/06.mp3" title ="Let The Music Use You : The Writers" />
<
song path="mp3/07.mp3" title ="We Got The Muzik : Sebastian Ingrosso & John Dahlback" />
<
song path="mp3/08.mp3" title ="Pop Muzik ('89 Reshuffle) : M" />
    <song path="mp3/09.mp3" title ="El Musica (Original Mix) : Osunlade featuring KB" />
<
song path="mp3/10.mp3" title ="Music : Sertab Erener" />
<
song path="mp3/11.mp3" title ="You And The Night And The Music : Mark Levine & The Latin Tinge" />
<
song path="mp3/12.mp3" title ="Music Like Dirt : The Lyrics" />
<
song path="mp3/13.mp3" title ="That's What I Call Sweet Music : Jean Goldkette & His Orchestra" />
</
player>
Happy hunting!

tags:

Technorati search

If your blog publishing tool pings Technorati on your new posts (see this list), you can search your blog with a simple form: Technorati: Searchlet configuration. Thanks to Dave Taylor's clear explanation, I've put one in my sidebar. Check it out.

Industry guru Dave Taylor answers questions about a wide variety of technical and business topics, including HTML, online advertising, Cascading Style Sheets, Web design, management, Unix, Linux, search engine optimization, online dating, Mac OS X, shell script programming and Microsoft Windows.

tags: