PDA

View Full Version : Using iTunes XML file on linux



Peter J.Pouliot
2004-06-05, 17:26
Howdy all,
I was wondering if it was possible to use the itunes xml file if my
slimserver is currently running on linux. Currently I maintain 2
copies of my music, one managed by itunes on my Mac (external firewire
drive) which is then rsync'd to a fedora box which runs my slimserver.
I've got 102gb of music and have been exporting my playlists and
massaging them to work properly on my slimserver. However if i could
just copy the xml file in the rsync process it would make my life a lot
easier to manage. I've seen a couple posts that mentioned that it was
possible, however I couldn't really find any good info on how to deploy
it.

Thanks for the help.

pp

vidurapparao
2004-06-05, 17:40
Haven't tried it myself, but setting the following preferences (set in
slimserver.conf or .slimserver.pref) might help:

# itunes -- 1 to attempt to use iTunes library XML file,
# 0 to simply scan filesystem.
#
# itunes_library_autolocate
# -- if this is set (1), attempt to automatically set both
# itunes_library_xml_path or itunes_library_music_path. If
# this is unset (0) or undefined, you MUST explicitly set both
# itunes_library_xml_path and itunes_library_music_path.
#
# itunes_library_xml_path
# -- full path to 'iTunes Music Library.xml' file.
#
# itunes_library_music_path
# -- full path to 'iTunes Music' directory (that is, the
# directory that contains your actual song files).
#
# ignoredisableditunestracks
# -- if this is set (1), songs that are 'disabled' (unchecked)
# in iTunes will still be available to Slimserver. If this is
# unset (0) or undefined, disabled songs will be skipped.
#
# itunesscaninterval
# -- how long to wait between checking
# 'iTunes Music Library.xml' for changes.


Peter J.Pouliot wrote:

> Howdy all,
> I was wondering if it was possible to use the itunes xml file if my
> slimserver is currently running on linux. Currently I maintain 2
> copies of my music, one managed by itunes on my Mac (external firewire
> drive) which is then rsync'd to a fedora box which runs my
> slimserver. I've got 102gb of music and have been exporting my
> playlists and massaging them to work properly on my slimserver.
> However if i could just copy the xml file in the rsync process it
> would make my life a lot easier to manage. I've seen a couple posts
> that mentioned that it was possible, however I couldn't really find
> any good info on how to deploy it.
>
> Thanks for the help.
>
> pp
>
>

Will Smith
2004-06-05, 18:39
I'm doing exactly that using iTunes for Windows and the Slimserver on
a Windows box. The trick is that iTunes has to use the same path to
the music that the Slimserver will use, or you'll have to fix the
paths manually every time you copy the xml file over.

Here's how I do it: I store all of my music on a hard drive on my
server which is mapped to a share called \\servername\music. iTunes
thinks that all of my music is on \\servername\music,
\\servername\music2, and \\servername\music3 (Telling iTunes I'd
moved my music from m:\ to \\servername\music without losing all my
ratings and playlists was actually the hardest part of the whole
endeavor. The only way I could make it work was to export the library
to XML, do a find and replace on the XML to make the paths right, and
then reimport the XML to a blank library. This kept ratings and
playlists, but lost Playcount and Last Played)

Once that's done, you can point the slimserver to the XML file and it
will look for the music in the paths listed for track in the XML. The
only other hitch is that whatever user is running the Slimserver must
have permissions to access all of the directories that your music is
stored in.

On the Windows side, I set iTunes to automatically copy music to my
iTunes folder so any new files are automagically put into Artist/Album
folders on my server and added to the iTunes database with the right
paths. I have a little logoff script that automatically copies the XML
file to my server whenever it changes, which then sets the Slimserver
update in motion.

It's a little involved, but it works surprisingly well.

///Will

On Sat, 5 Jun 2004 20:26:30 -0400, Peter J.Pouliot <peter (AT) pouliot (DOT) net> wrote:
>
> Howdy all,
> I was wondering if it was possible to use the itunes xml file if my
> slimserver is currently running on linux. Currently I maintain 2
> copies of my music, one managed by itunes on my Mac (external firewire
> drive) which is then rsync'd to a fedora box which runs my slimserver.
> I've got 102gb of music and have been exporting my playlists and
> massaging them to work properly on my slimserver. However if i could
> just copy the xml file in the rsync process it would make my life a lot
> easier to manage. I've seen a couple posts that mentioned that it was
> possible, however I couldn't really find any good info on how to deploy
> it.
>
> Thanks for the help.
>
> pp
>
>

kdf
2004-06-06, 04:02
Access to most (if not all) of these prefs is also available in the Server
SEttings->Additional Settings->iTunes. This applies to the latest nightly
releases, and not to 5.1.5.
-kdf

Quoting Vidur Apparao <vidur (AT) slimdevices (DOT) com>:

>
> Haven't tried it myself, but setting the following preferences (set in
> slimserver.conf or .slimserver.pref) might help:
>
> # itunes -- 1 to attempt to use iTunes library XML file,
> # 0 to simply scan filesystem.
> #
> # itunes_library_autolocate
> # -- if this is set (1), attempt to automatically set both
> # itunes_library_xml_path or itunes_library_music_path. If
> # this is unset (0) or undefined, you MUST explicitly set both
> # itunes_library_xml_path and itunes_library_music_path.
> #
> # itunes_library_xml_path
> # -- full path to 'iTunes Music Library.xml' file.
> #
> # itunes_library_music_path
> # -- full path to 'iTunes Music' directory (that is, the
> # directory that contains your actual song files).
> #
> # ignoredisableditunestracks
> # -- if this is set (1), songs that are 'disabled' (unchecked)
> # in iTunes will still be available to Slimserver. If this is
> # unset (0) or undefined, disabled songs will be skipped.
> #
> # itunesscaninterval
> # -- how long to wait between checking
> # 'iTunes Music Library.xml' for changes.
>
>
> Peter J.Pouliot wrote:
>
> > Howdy all,
> > I was wondering if it was possible to use the itunes xml file if my
> > slimserver is currently running on linux. Currently I maintain 2
> > copies of my music, one managed by itunes on my Mac (external firewire
> > drive) which is then rsync'd to a fedora box which runs my
> > slimserver. I've got 102gb of music and have been exporting my
> > playlists and massaging them to work properly on my slimserver.
> > However if i could just copy the xml file in the rsync process it
> > would make my life a lot easier to manage. I've seen a couple posts
> > that mentioned that it was possible, however I couldn't really find
> > any good info on how to deploy it.
> >
> > Thanks for the help.
> >
> > pp
> >
> >