PDA

View Full Version : More iTunes Playlist information, and questions



Dave Rodger
2004-12-19, 09:53
Hey--

So I've been doing some more digging to identify why my slimserver/iTunes integration isn't working quite as I want. To recap, Slimserver is using the iTunes library successfully, and I'm using the iTunesUpdater script (great script, by the way) to update the playcounts, etc. etc.) What doesn't work are the playlists.

I see the playlists in my Browse Playlists selection, but when I try to view the songs in them, they're always empty.

Turning on itunes debugging and looking at the log after forcing a scan gives me the following clues:


2004-12-19 11:43:53.7060 found end of dictionary
2004-12-19 11:43:53.7064 got a track named Mr. Grieves location: file://localhost//Spirit/mp3/Pixies/Doolittle/Pixies%20-%20Mr.%20Grieves.mp3/
2004-12-19 11:43:53.7071 iTunes: normalized file://localhost//Spirit/mp3/Pixies/Doolittle/Pixies%20-%20Mr.%20Grieves.mp3/ to file:///Spirit/mp3/Pixies/Doolittle/Pixies%20-%20Mr.%20Grieves.mp3
2004-12-19 11:43:53.7079 iTunes: file not found: /Spirit/mp3/Pixies/Doolittle/Pixies - Mr. Grieves.mp3


So clearly the problem is directory/path based--I just don't know how to fix it necessarily.

My configuration:
Linux PC named spirit. Holds the MP3s in the directory /home/mp3. This directory is samba-exported to the world as \\spirit\mp3
Running Slimserver v5.4.0
iTunes running on a PC.
iTunes "My Music" directory has been tweaked to reside on \\spirit\itunes, to allow the iTunes directory to be accessible to the slimserver

So it appears that the iTunes library has the file://localhost/ prefix before each tune in the library, which is why slimserver can't find it. Any advice on what I can/should do to address this?

Thanks!

-dave

kdf
2004-12-19, 10:45
the translation required to support itunes under linux might have to be changed
in order to support unc paths. I've only ever used it with a mapped drive. If
you were to map //spirit/mp3 to a drive under windows, then import from there
to itunes, it might work better for you.

otherwise, the translation you would need to investigate is found in iTunes.pm,
in a subroutine named normalize_location()

-kdf

Quoting Dave Rodger <dave (AT) davidrodger (DOT) com>:

> Hey--
>
> So I've been doing some more digging to identify why my slimserver/iTunes
> integration isn't working quite as I want. To recap, Slimserver is using the
> iTunes library successfully, and I'm using the iTunesUpdater script (great
> script, by the way) to update the playcounts, etc. etc.) What doesn't work
> are the playlists.
>
> I see the playlists in my Browse Playlists selection, but when I try to view
> the songs in them, they're always empty.
>
> Turning on itunes debugging and looking at the log after forcing a scan gives
> me the following clues:
>
>
> 2004-12-19 11:43:53.7060 found end of dictionary
> 2004-12-19 11:43:53.7064 got a track named Mr. Grieves location:
> file://localhost//Spirit/mp3/Pixies/Doolittle/Pixies%20-%20Mr.%20Grieves.mp3/
> 2004-12-19 11:43:53.7071 iTunes: normalized
> file://localhost//Spirit/mp3/Pixies/Doolittle/Pixies%20-%20Mr.%20Grieves.mp3/
> to file:///Spirit/mp3/Pixies/Doolittle/Pixies%20-%20Mr.%20Grieves.mp3
> 2004-12-19 11:43:53.7079 iTunes: file not found:
> /Spirit/mp3/Pixies/Doolittle/Pixies - Mr. Grieves.mp3
>
>
> So clearly the problem is directory/path based--I just don't know how to fix
> it necessarily.
>
> My configuration:
> Linux PC named spirit. Holds the MP3s in the directory /home/mp3. This
> directory is samba-exported to the world as \\spirit\mp3
> Running Slimserver v5.4.0
> iTunes running on a PC.
> iTunes "My Music" directory has been tweaked to reside on \\spirit\itunes, to
> allow the iTunes directory to be accessible to the slimserver
>
> So it appears that the iTunes library has the file://localhost/ prefix before
> each tune in the library, which is why slimserver can't find it. Any advice
> on what I can/should do to address this?
>
> Thanks!
>
> -dave
>
>
>