View Full Version : [SOLVED] Rhythmbox not getting all of Magnatunes library.

February 4th, 2011, 07:38 PM
Hope someone can help.

Installed Ubuntu 10.10 (32-bit) and as the title implies, Rhythmbox is not fetching all of Magnatunes library. It works, it loads Magnatune and the songs all play, but it only loads 5 artists with a total of 18 albums. I am not sure, but going by the names of the artists, it is possible it is just loading the first 5 artists. Anybody else have this problem? Is there a fix? For the record, Jamendo's catalog loads just fine with 22,636 artists loaded.

Help would be much appreciated, missing Magnatune. Thanks!

Mark Stosberg
February 5th, 2011, 06:52 PM
I am getting the same behavior on 10.04 on two different computers, and have been for about a week. I'm a paying Magnatune subscriber and contacted them about the issue a few days ago, but have not heard back. I'll analyze the network traffic some now and see if I can learn amount what's happening.

Mark Stosberg
February 5th, 2011, 07:12 PM
I used "gksudo wireshark" to what the HTTP requests and responses between Rhythmbox and Magnatune. What I found was that Rhythmbox was requesting this file, which unpacks to 14 Meg XML file:


I can see that the first entry after the one that appears have a XML validation problem. The genre name given as "Rock & Roll", when the XML should be "Rock & Roll". I confirmed this by pasting a chunk of the XML into a XML validation service:


It clearly shows that the file does have an XML validation problem, and the first problem in the file is exactly as given above-- just after the last file we see loading.

So, this appears to be squarely a bug with Magnatune, not Rhythmbox. Magnatune is failing to provide valid XML. I'll follow-up with Magnatune.

Mark Stosberg
February 5th, 2011, 08:10 PM
Although this is a bug in Magnatune, I have created a patch for the Rhythmbox Magnatune plugin until they fix the issue properly.

I've tested this on 10.04, but it should be safe to try on other versions. At worse, uninstall and re-install the rhythmbox-plugins package to undo the patch.

Stop Rhythmbox, save the attached file to your desktop, open a terminal and run this:

sudo patch /usr/lib/rhythmbox/plugins/magnatune/MagnatuneSource.py <Desktop/rhythmbox_magnatune.patch.txt

Now, start Rhythmbox again. The entire catalog should be there.

The patch simply rewrites their invalid XML file to be be valid.

February 5th, 2011, 11:36 PM
Thanks Mark! I can confirm your patch works in Maverick! Magnatune is working now with 410 artists and 909 albums.

As a side note, this also restored album artwork which was also not loading. And I don't know if this is a new thing with Magnatune now but commercials are now playing over the song rather than between songs! Very annoying!!! ( I do not remember Magnatune ever doing this!)

February 6th, 2011, 12:34 PM
Thank you for the fix. This has been bothering me for a few days now and I really appreciate the patch. I love the open source world!!! Thanks again.

February 6th, 2011, 06:53 PM
I've fixed the XML encoding problem with "Rock & Roll".

Rhythmbox should hopefully now be happy with it again.

- John from Magnatune

February 6th, 2011, 09:01 PM
Thanks Mark!:)

February 7th, 2011, 03:32 PM
Thats great John! Thanks for jumping in and fixing this, gonna mark this solved!

Thanks All ~Baron

May 28th, 2011, 04:40 PM
Magnatune is refusing to load the catalogue in Natty. I've tried the patch, no luck.