Bug 17406 - iTunes importer seems to ignore the NAS media path
: iTunes importer seems to ignore the NAS media path
Status: RESOLVED DUPLICATE of bug 17394
Product: Logitech Media Server
Classification: Unclassified
Component: iTunes
: unspecified
: Other Linux (other)
: -- normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-06 12:29 UTC by Ian
Modified: 2011-08-09 04:43 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Scanning log (14.76 KB, text/plain)
2011-08-06 12:29 UTC, Ian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 2011-08-06 12:29:54 UTC
Created attachment 7379 [details]
Scanning log

I have a QNAP NAS which holds my music files and the iTunes library.  I operate
iTunes on my laptop and stream to my Squeezeboxes using the QNAP server.
Since upgrading iTunes to 10.4.0.80, the NAS firmware and the Squeeze Server to
7.5.4 - r32171 I can no longer import iTunes files to populate the "songs" and
the playlists.  The problem is in the normalized filename.  I have created
another iTunes folder with only a few tracks and it clearly ignores the entry
in the Server's iTunes tab for "iTunes Media Folder" which I have set either to
the media folder or the music folder (one of the folders in the media folder). 
The critical import lines read:
[11-08-06 07:53:08.6810] Slim::Plugin::iTunes::Common::useiTunesLibrary (72)
Using iTunes library: 1
[11-08-06 07:53:08.6820] Slim::Plugin::iTunes::Importer::startScan (154)
Parsing file: /Qmultimedia/iTunes 2/iTunes 1/iTunes Library.xml
[11-08-06 07:53:08.6974] Slim::Plugin::iTunes::Importer::handleCharElement
(526) Found the music folder:
file://localhost/I:/iTunes%202/iTunes%201/iTunes%20Media
[11-08-06 07:53:08.6987] Slim::Plugin::iTunes::Importer::handleEndElement (589)
Starting track parsing.
[11-08-06 07:53:08.7804] Slim::Plugin::iTunes::Common::normalize_location (363)
Normalized
file://localhost//QNAPNAS/Multimedia/iTunes%202/iTunes%201/iTunes%20Media/Music/de%20los%20Angeles,%20Victoria_%20Gedda,%20Nicolai/Bizet_%20Carmen%20(Beecham)%20Disc%201/03%20Avec%20la%20garde%20montante.mp3
to
file:///QNAPNAS/Multimedia/iTunes%202/iTunes%201/iTunes%20Media/Music/de%20los%20Angeles,%20Victoria_%20Gedda,%20Nicolai/Bizet_%20Carmen%20(Beecham)%20Disc%201/03%20Avec%20la%20garde%20montante.mp3
[11-08-06 07:53:08.7830] Slim::Plugin::iTunes::Common::normalize_location (363)
Normalized
file://localhost//QNAPNAS/Multimedia/iTunes%202/iTunes%201/iTunes%20Media/Music/de%20los%20Angeles,%20Victoria_%20Gedda,%20Nicolai/Bizet_%20Carmen%20(Beecham)%20Disc%201/03%20Avec%20la%20garde%20montante.mp3
to
file:////QNAPNAS/Multimedia/iTunes%202/iTunes%201/iTunes%20Media/Music/de%20los%20Angeles,%20Victoria_%20Gedda,%20Nicolai/Bizet_%20Carmen%20(Beecham)%20Disc%201/03%20Avec%20la%20garde%20montante.mp3
[11-08-06 07:53:08.7852] Slim::Plugin::iTunes::Importer::handleTrack (314) File
not found: //QNAPNAS/Multimedia/iTunes 2/iTunes 1/iTunes Media/Music/de los
Angeles, Victoria_ Gedda, Nicolai/Bizet_ Carmen (Beecham) Disc 1/03 Avec la
garde montante.mp3

I have only given you one example but the whole log is attached.  My apologies
if I should be following this up with QNAP.
Comment 1 Michael Herger 2011-08-08 01:56:34 UTC
> I have a QNAP NAS which holds my music files and the iTunes library.  I operate
> iTunes on my laptop and stream to my Squeezeboxes using the QNAP server.
> Since upgrading iTunes to 10.4.0.80, the NAS firmware and the Squeeze Server to
> 7.5.4 - r32171 I can no longer import iTunes files to populate the "songs" and
> the playlists.  The problem is in the normalized filename.  I have created

Great thanks for your bug report! Because it confirms what I suspected: the issue we're seeing (we've had several reports about it) is not due to 7.6, but iTunes 10.4.

Please see https://bugs-archive.lyrion.org/show_bug.cgi?17394: other users had to verify/edit the paths after the iTunes update. Could you please post what iTunes is reporting as its Media Folder location, and what you've set in SBS?
Comment 2 Ian 2011-08-08 11:00:44 UTC
(In reply to comment #1)
> > I have a QNAP NAS which holds my music files and the iTunes library.  I operate
> > iTunes on my laptop and stream to my Squeezeboxes using the QNAP server.
> > Since upgrading iTunes to 10.4.0.80, the NAS firmware and the Squeeze Server to
> > 7.5.4 - r32171 I can no longer import iTunes files to populate the "songs" and
> > the playlists.  The problem is in the normalized filename.  I have created
> 
> Great thanks for your bug report! Because it confirms what I suspected: the
> issue we're seeing (we've had several reports about it) is not due to 7.6, but
> iTunes 10.4.
> 
> Please see https://bugs-archive.lyrion.org/show_bug.cgi?17394: other users had to
> verify/edit the paths after the iTunes update. Could you please post what
> iTunes is reporting as its Media Folder location, and what you've set in SBS?

Dear Michael,

I have done some more research on this.  When I moved my music from my old PC (which was also acting as an iTunes server) I did so with the very old directory structure of iTunes/music/[and then all my music folders].  On the QNAP NAS this then went into the Multimedia folder.  Recently (not sure when in this process), I set the iTunes media folder to Multimedia/iTunes/iTunes Media which is how iTunes now wants to find it.  All the old music stayed where it was.  Even so, everything continued to work including Squeezebox Server.  

In my experiments with a very small duplicate iTunes folder, things worked after I changed the specification of the media folder from "/Qmultimedia/iTunes/iTunes Media" to "/share/Multimedia/iTunes/iTunes Media".  Please check this yourself.  THIS may be a "bug" or at least a trap for the unsuspecting.  As I reply to you now, I am consolidating my 13,000 tracks into the one folder - it will take some considerable time.  I am hoping that once this is done that all will work and I will keep you posted.

Sadly, I did not keep notes of each change I made and what didn't and what did work but my guarded advice for anyone else stuck with this problem is to consolidate your iTunes library (iTunes is busy as I write this or I'd give directions), then specify the path in the iTunes Music Folder under the iTunes tab of Squeezebox Server by using the "share" path and see if things are then fixed.

My guess is that the iTunes importer is none too clever in its path normalization and that it is getting lost if the folder structure is not as it now expects it to be.

Regards,
Ian.
Comment 3 Ian 2011-08-08 23:35:10 UTC
After consolidating the files into the iTunes Media folder, the scan now works first time with all music files and playlists all populated!  I will leave you to work out why this should be so but I guess the file name normalization process wants to see the structure as fairly simple and predictable.  All the best and thanks.
Comment 4 Michael Herger 2011-08-09 04:43:31 UTC
Yes, we rely on tracks being managed by iTunes to reside inside its media folder. Otherwise the path normalization would be even more complicated and prone to errors. Thanks a lot for the testing and feedback!

*** This bug has been marked as a duplicate of bug 17394 ***