Saturday, January 16, 2010

Import iTunes library with ratings to Rhythmbox

What I'm still troubled using Ubuntu is an nice media player with library support. Rhythmbox lacks features which banshee has. But, I definitely don't want to get stuck with an mono application. Surely hope, rhythmbox gets better over time.

One feature where banshee beats rhythmbox is to import iTunes library. If rhythmbox  had done that, it would had been so better given their UI is inspired from iTunes.

Google lead to me couple of sites & one had an python script which unfortunately didn't work for me. So, I decided to do things on my own and for my good both iTunes & rhythmbox use XML files to save library info. That made my life easier.

One thing XSL doesn't do is file paths. So, replace all windows drive with Linux mount points manually.

On Ubuntu run,
xsltproc iTunes_to_rhythm.xsl "iTunes Music Library.xml" > rhythmdb.xml
to run XSL.

Finally place the file in ~/.local/share/rhythmbox folder and start rhythmbox.

Seems to be working fine for me. Let me know of any issues, will try to fix.