Hi Erland, let me mention, how much I like your plugin. You are doing a great job!
Thanks for the fast reply. It lead me to where really the problem was and I have to correct myself: the problem I described *is* related to special characters in the file path: My own sed-based workaround for the special-char-problem generated a non-well-formed xml file: transformation.sed: s/&/&/g s/%5B/\[/g s/%5D/\]/g Log file entry: [09-08-08 19:52:45.7814] Plugins::CustomScan::Scanner::exitScanTrack (1707) CustomScan: Failed to call exitScanTrack on module Plugins::TrackStat::Plugin->itunesimport: not well-formed (invalid token) at line 18, column 41, byte 817: <key>Track ID</key><integer>3040</integer> <key>Name</key><string>Dream Machine (Down Tempo Mix)</string> <key>Artist</key><string>Mark Farina & Sean Hayes</string> ========================================^ I got rid of all the 'No matching alternative path found' messages, but ignored the error message above. Bugger! The songs with imported rating have been imported *before* I implemented this workaround. Deactivating my sed script leads me back to the problem described in Thread "CustomScan - iTunes statistics import notworking". In this thread I haven't found a hint how to excactly deal with those characters like '[]&' in my filenames. Nevertheless, focussing (as advised) on the plugin.trackstat-messages, I found out, that for some reason SC does NOT url-Encode the above Characters. Eg. '&' in 'Girls & Boys': mysql> select url, rating from tracks_persistent where url like '%Blur%Parklife%Girls%Boys%'; +------------------------------------------------------------------------+--------+ | url | rating | +------------------------------------------------------------------------+--------+ | file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/01_Girls%20&%20Boys.mp3 | NULL | +------------------------------------------------------------------------+--------+ 1 row in set (2.89 sec) I would expect this url to be stored as TrackStat does: 'Girls%20%26%20Boys' (thanks again for the hint to the logfile), but SC stores it as 'Girls%20&%20Boys' Log Messages: [09-08-09 22:12:53.6025] Plugins::TrackStat::Storage::findTrack (495) findTrack(): URL: file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/10_London%20Loves.mp3 [09-08-09 22:12:53.6195] Plugins::TrackStat::iTunes::Import::normalize_location (689) normalized file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/01_Girls%20%26%20Boys.mp3 to file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/01_Girls%20%26%20Boys.mp3 [09-08-09 22:12:53.6238] Plugins::TrackStat::iTunes::Import::handleTrack (448) got a track named Girls %26 Boys location: file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/01_Girls%20%26%20Boys.mp3 [09-08-09 22:12:53.6557] Plugins::TrackStat::Storage::mergeTrack (1065) File file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/01_Girls%20%26%20Boys.mp3 doesn't exist - will try to find on alternative path. [09-08-09 22:12:53.6584] Plugins::TrackStat::Storage::findObjectForMovedUrl (899) Find track urls ending with /B/Blur%20-%20Parklife/01_Girls%20%26%20Boys. [09-08-09 22:12:59.9177] Plugins::TrackStat::Storage::findObjectForMovedUrl (904) Found 0 matching tracks [09-08-09 22:12:59.9196] Plugins::TrackStat::Storage::findObjectForMovedUrl (924) Find track urls ending with /Blur%20-%20Parklife/01_Girls%20%26%20Boys. [09-08-09 22:13:06.2219] Plugins::TrackStat::Storage::findObjectForMovedUrl (929) Found 0 matching tracks [09-08-09 22:13:06.2237] Plugins::TrackStat::Storage::mergeTrack (1072) No matching alternative path found for file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/01_Girls%20%26%20Boys.mp3. [09-08-09 22:13:06.2315] Plugins::TrackStat::iTunes::Import::normalize_location (689) normalized file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/12_Clover%20Over%20Dover.mp3 to file:///mnt/sda1/mp3/A-Z/B/Blur%20-%20Parklife/12_Clover%20Over%20Dover.mp3 Maybe a bug in SC? Cheers ElMuto -- ElMuto ------------------------------------------------------------------------ ElMuto's Profile: http://forums.slimdevices.com/member.php?userid=32058 View this thread: http://forums.slimdevices.com/showthread.php?t=66475 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins