[mythtv-users] mythmusic and itunes solution

Gary Dezern gary at garyndenise.org
Tue May 2 13:48:50 UTC 2006



> The script also imports your itunes
> playlists into
mythmusic.  If you are interested you can download the
> script
from here - http://www.trevorkramer.com/load_itunes.py. It
>
should run on any recent python install with python-mysql installed.
> Invoke it with - load_itunes.py /path/to/itunes/xml/file.

Love the script.  However, I noticed a couple of issues with it
that you might want to fix:

1)  The following iTunes
fields might be blank in the xml file, and result in the script dying when
trying to insert null values into the SQL:  artist, track  (this
should be simple to fix)

2)  I used the script to import
an xml file from iTunes running on Windoze.  One huge problem is that
Windoze is case-insensive for file paths, and linux (and almost every
other non-MS based OS) is case-sensitive.  The result that the import
seemed to work, but playing the files would result in libMad failing
(can't find the file.)  I don't think there's much you can do to fix
this in the script (except perhaps warn?)

Thank you for
contributing your work
Gary

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060502/b079bc5e/attachment.htm 


More information about the mythtv-users mailing list