Jamendo direct download with Rhythmbox [HowTo]

While Rhythmbox allows you to download songs from Jamendo via BitTorrent, that method is horribly broken as there are pretty much no seeders. Here’s a quick tutorial to have Rhythmbox open your browser at Jamendo’s direct download page.

Backup JamendoSource.py to be sure to be able to recover eventual breakages:

sudo cp /usr/lib/rhythmbox/plugins/jamendo/JamendoSource.py /usr/lib/rhythmbox/plugins/jamendo/JamendoSource.backup

Open JamendoSource.py with your favorite editor

sudo geany /usr/lib/rhythmbox/plugins/jamendo/JamendoSource.py

Find line 299 (or look for “mp32_uri” using your editor search function), right after:

formats["ogg3"] = ogg3_uri + albumid

Insert those new lines (be sure to use (3) tabs for indenting !)

p2plink = "http://www.jamendo.com/en/download/album/" + albumid #formats[format]
gtk.show_uri(self.props.shell.props.window.get_screen(), p2plink, gtk.gdk.CURRENT_TIME)
return

Save and close the file.

Now we’re gonna regenerate the precompiled python file. First remove the old one (note the trailing ‘c’ in the filename):

sudo rm /usr/lib/rhythmbox/plugins/jamendo/JamendoSource.pyc

Compiling time. (it will throw an error in the console. Don’t worry, it’s ok!)

cd /usr/lib/rhythmbox/plugins/jamendo/
sudo python -m JamendoSource.py

If everything went ok you should see this error in the console:

/usr/bin/python: No module named rb

Now close rhythmbox (press Ctrl+Q, don’t just close the window) and open it again.

Time to try it out now. Connect to jamendo and try to download an album, a new browser window will open, and your download will be just a click away. :) (the page contains ads, which, in my opinion is totally fair)

As a final thing, I suggest you to make a backup copy of the file in your home directory somewhere, should you need to reapply the modifications after an upgrade.

This seems like a great time to subscribe my RSS !

Leave a Reply

Bills

Don’t forget to Subscribe

Latest Activity

Posts

  • LOL
    https://lists.ubuntu.com/archives/ubuntu-desktop/2011-November/003467.html many lessons to be learned there * Share it !
  • Deja vu
    Reminds me of something. Share it !
  • Google this is ridiculous
    Google you’re doing it wrong. Very wrong. This is utterly ridiculous. It’s a screenshot with a standard Firefox browser, in the standard screen resolution (1280×800), on Read More
  • A step back from the open source
    One month ago, I created my first Android app. While the app was a paid one, the reception has been outstanding. I’ve gotten a fair amount Read More
  • Facebook shuts down EventPress development.
    When you’re a big company, especially one that makes its money on free web services and advertising, it’s very easy to say you love open Read More