Home » Music & Audio, Open Source, Python

Recording Last.fm Streams with Ubuntu Linux Rhythmbox to mp3 or ogg

20 October 2008 One Comment

There’s three options available for achieving this, as far as I can see:

  • TheLastRipper – This is a fully featured streamripper for last.fm that has a great feature set (ID3v2 tags, international characters, automatic directory hierachies) BUT you can not listen to the streams while it’s ripping. It’s got the ‘love’ / ‘ban’ buttons but how can you tell if you can’t hear the bloody music right?
  • LastLonger – Is a command line client written in Perl and you can output the stream to a music player also. When I saw this, I thought that I might use it as a programming exercise and port it to Python, though I couldn’t get it to work quickly and having modern-age ADD, I went looking for something else.
  • Rhythmbox streamrecorder – This is actually what I was looking for in the first place. Rhythmbox makes it very simple to setup ‘stations’ from Last.fm and streamrecorder does what it says, recording the streams.

The good and the bad of Rhythmbox so far (after 5 minutes of testing, so take it as a grain of salt)

Good

  • Integrated with Rhythmbox, a very usable music player already (I switch between Banshee, Listen, Amarok and Rhythmbox, each have a nice feature I like)
  • Can still use ban and love buttons
  • Can still use “next track” button
  • It’s a python plugin

Bad

  • Saves files on your desktop – doesn’t seem anyway to change this in the gui (python exercise could be to make this configurable
  • Uses gnome sounds settings to choose recording format. This isn’t necessarily a bad things except the fact that changing these settings isn’t exactly trivial

Still, the good outweighs the bad by a longshot. I haven’t checked if it handles international characters or writes Id3v2 tags or anything yet.

One Comment »

  • hhh said:

    Hi, thanks for the post on Stream Recorder. I had to create the folders rhythmbox and plugins in .gnome2, I assume this is normal. I wanted to let you know, if you still use this plugin, that I was easily able to change which folder the plugin records to. Just open recorder.py in a text editor and changed the line Record Folder = ‘~/Desktop’ to another directory. In my case I created a LastFM folder in Music and used Record Folder = ‘~/Music/lastFM . Cheers.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.