Bug 1248 - Artists containing special characters in iTunes are missing
: Artists containing special characters in iTunes are missing
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.0.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-30 09:41 UTC by Michel Fombellida
Modified: 2008-08-18 10:54 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
My iTunes xml library (3.77 MB, text/xml)
2005-04-10 09:21 UTC, Michel Fombellida
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Fombellida 2005-03-30 09:41:16 UTC
Hi,

On Win XP SP2 running Slimserver 6.0.0 r2781, using iTunes and specifying the 
location of library and music folder, I see the following bug: in iTunes I 
have 112 artist and SS I have 108. I checked which artists are missing: they 
all contains special characters as seen in iTunes: 
1) Nils Petter Molv�r
2) Andr� Previn
3) Arvo P�rt
4) Fr�d�ric Hartmann

apparently SS V6 ignores them. Rescanning the DB, wipping cache, recreating 
the DB doesn't help. 

Michel
Comment 1 Dan Sully 2005-03-31 11:08:02 UTC
Michael - is this XP Pro or XP Home?

Also - what is the filesystem you're using? FAT32 or NTFS?

Thanks.
Comment 2 Dan Sully 2005-03-31 11:13:11 UTC
Also - what program did you use to rip the tracks?
Comment 3 Michel Fombellida 2005-03-31 12:05:33 UTC
Dan,

XP PRO SP2, NTFS. All my collection had been ripped with iTunes and directly 
compressed to Apple Lossless. 

I deinstalled slimserver, reinstalled 5.4.1 and it is giving the correct count 
(the 4 artists are listed). Then deinstall 5.4.1, resinstall 6.0.0 and I still 
have the same 4 artist missing! 

itunes: 115 artists, 229 albums, 2734 songs
5.4.1 : 115 artists, 229 albums, 2734 songs
6.0.1: 111 artists, 225 albums, 2638 songs 

Michel
Comment 4 Dan Sully 2005-04-03 15:34:46 UTC
Michael - would it be possible to upload a zip file with one or two of those songs?

Thanks. 
Comment 5 Michel Fombellida 2005-04-04 01:03:51 UTC
Yes sure, where can I upload or email?

Michel
Comment 6 Dan Sully 2005-04-04 09:03:59 UTC
You can create an attachment to this bug.
Comment 7 Michel Fombellida 2005-04-05 10:07:27 UTC
Hi Dan, 
for some reason it did not work via the upload here in the bug tracker, I sent 
you a PM with one song attached. Hope this help.
Michel
Comment 8 James Craig 2005-04-10 05:39:55 UTC
I get this as well. 
For example Bjork is completely missing from SlimServer bcos I have the accent
on the o. 
I believe this is caused by iTunes XML escaping certain characters.
Let me know if I can provide any debugging.
Comment 9 Michel Fombellida 2005-04-10 05:49:34 UTC
I am not sure it is due to iTunes XML. Here is a extract of my iTunes library:

</dict>
  <key>720</key> 
+ <dict>
  <key>Track ID</key> 
  <integer>720</integer> 
  <key>Name</key> 
  <string>Fratres</string> 
  <key>Artist</key> 
  <string>Arvo P�rt</string> 
  <key>Composer</key> 
  <string>Arvo P�rt</string> 

The artist "Arvo P�rt" is listed correctly with the accent but it is one of 
the 4 that doesn't appear in slimserver. I can also send my iTunes library xml 
file if that helps.

Comment 10 James Craig 2005-04-10 06:00:21 UTC
I think the problem is with the location field more than anything.
<key>Location</key><string>file://localhost/E:/Bj%C3%B6rk/The%20Times%20Sampler/09%20possibly%20maybe%20with%20the%20brodsky%20q.mp3/</string>

My speculation is that SlimServer is not expecting that to have been escaped,
doesn't find the file and drops it out of the database?
Comment 11 Dan Sully 2005-04-10 08:55:14 UTC
Yes - could everyone upload their .XML files?

Also - what OS are you running on? If it's Windows, is it SP2?

Thanks.
Comment 12 Dan Sully 2005-04-10 09:20:19 UTC
If anyone is running the ActiveState version - could you try editing
server/Plugins/iTunes.pm, and at line 655, change:

my $file  = Slim::Utils::Misc::pathFromFileURL($url, 1);

to:

my $file  = Slim::Utils::Misc::pathFromFileURL($url, 0);

Thanks.
Comment 13 Michel Fombellida 2005-04-10 09:21:02 UTC
Created attachment 411 [details]
My iTunes xml library

Itunes XML library. Running on Win XP SP2.
Comment 14 Michel Fombellida 2005-04-10 09:51:42 UTC
Hi Dan,

I tried changing
my $file  = Slim::Utils::Misc::pathFromFileURL($url, 1);

to:

my $file  = Slim::Utils::Misc::pathFromFileURL($url, 0);

it works! The albums and songs with accents are now visible in slimserver. I 
now have the same counts in iTunes and slimserver.

Michel
Comment 15 Dan Sully 2005-04-10 10:13:02 UTC
Great - fixed in Subversion change 2925 - it will be in tonight's build.
Comment 16 James Craig 2005-04-11 12:53:56 UTC
Yes this is good. 
I'm still missing over 200 tracks but I don't know what they are!
Comment 17 James Craig 2006-02-24 00:47:41 UTC
This is back in 6.5 - can this bug be re-opened?

Tracks from iTunes library that contain accented characters in filename+path do not appear in SlimServer after full scan or rescan. 
Tracks with accented characters in tags but not filename+path do appear correctly.

SS 6.5, iTunes 6, Win XP Home

Here's what's in the iTunes XML for location of one of my missing tracks:
<string>file://localhost/E:/Bj%C3%B6rk/The%20Times%20Sampler/09%20possibly%20maybe%20with%20the%20brodsky%20q.mp3</string>