Re: [Rhythmbox-devel] [ques] convert itunes.xml to rhythmdb.xml?
- From: GCZ <geeceezee free fr>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] [ques] convert itunes.xml to rhythmdb.xml?
- Date: Sun, 08 Aug 2004 06:41:33 +0200
Mike Schroeder wrote:
is there a way to convert my existing itunes library (library.xml) to
something that rhythmbox can understand so all my ratings, play
counts, etc will stay intact?
[Sorry for the dupe, I first replied to the sender by mistake.]
OK, I just coded this:
http://dev.skamp.net:8080/itunes-rhythmbox/
Compress your iTunes Library file with bzip2, upload it
(Library.xml.bz2), and you get a bzipped rhythmdb.xml file.
Then bunzip it, replace every occurence of "/mnt/c" with the directory
where you mounted your windows partition, and move it to
~/.gnome2/rhythmbox/rhythmdb.xml.
I can't publish the code yet, since a lot of the code I used isn't
public yet. Maybe later. I guess this is better than nothing :-/
I have to recompile my kernel with NTFS reading support in order to test
if rhythmbox works fine with the generated xml file, so there's no
guarantee.
Tell me if it works for you!
By the way, while my code is far from perfect, I think I can say without
much doubt that the guy who conceived the DTD for iTunes' Library xml
either doesn't know much about XML or doesn't care. It's a pain to
parse, and takes none of XML's advantages. It's just a serialization of
a multidimensional array. I would expect better from Apple...
By comparison, the rhythmboxdb DTD makes much more sense and is waaaay
easier to parse, IMHO.
Guillaume
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]