This is going to be long as I describe my situation and what I've done to solve it, so bear with me. My actual goal here is to get my TrackStat ratings back into my LMS and then over to iTunes, but the path is going to be littered with challenges.
A few notes first: 1. I use the ¬ character as a separator in my file names. It is not used in the metadata, but it allows me to easily take file names and easily create metadata, which is a good thing in case things go really bad with my metadata (and backups). 2. I had a FLAC files, but recently converted them to ALAC (.m4a). 3. I also have mp3 files. They were unchanged. 4. All (well, most) of my files have a MusicBrainz ID. (The alac files took the same MB ID as the flac files. A small sample test of removing the flac MB ID and getting a new MB ID based on the alac file uses the same MB ID.) 5. I have a TrackStat backup XML file with thousands of files rated. 6. About the ¬ character...I have my files stored as /artist/album/year ¬ disc-track ¬ title. That's how the OS (details at the bottom of this post) sees the files and that is sort of how LMS sees them, too. I say sort of because sometimes LMS says the file is year ¬ disc-track ¬ title and other times it says the file is year ¬ disc-track ¬ title. And this is also how TrackStat sees the URL: year%2520%25C2%25AC%2520disc-track%2520%25C2%25AC%2520title.m4a. Question: Where did the Â/%25C2 come from?! I didn't put it there. I think the the errant  is a part of the problem. My process so far: 1. After converting the FLAC files to ALAC, I cleared my LMS library and rescanned. 2. I edited the TrackStat backup XML file and changed the file extensions from .flac to .m4a. I also changed path directories previously called "flac" to "alac". 3. Using Custom Scan, I attempted to restore my TrackStat ratings. The ratings for the unchanged mp3 files appear to have been restored correctly, but not for the alac files. I don't understand why this is just an issue for the alac/m4a files. So I ran CustomScan and TrackStat in debug mode to look at the log files for clues. Sadly, there's nothing there that look suspicious to me. Erland, do you see anything? "server.log" wrote: > > [12-04-23 11:34:55.6758] Plugins::CustomScan::Scanner::moduleRescan > (732) Performing module rescan > [12-04-23 11:34:55.6761] Plugins::CustomScan::Scanner::moduleRescan > (739) Starting scanning with TrackStat Restore > [12-04-23 11:34:55.8266] Plugins::CustomScan::Scanner::initTrackScan > (1318) Clearing track data for trackstatrestore > [12-04-23 11:34:56.2448] Plugins::CustomScan::Scanner::initTrackScan > (1336) Start clearing track data with delete > [12-04-23 11:34:56.2489] Plugins::CustomScan::Scanner::initTrackScan > (1350) Clearing track data...(Elasped time: 0.422237 seconds) > [12-04-23 11:34:56.2493] Plugins::CustomScan::Scanner::initTrackScan > (1396) Deleted track data after 0.422739 seconds > [12-04-23 11:34:56.2500] Plugins::CustomScan::Scanner::initScanTrack > (1428) Calling: > Plugins::TrackStat::Plugin->trackstatrestore::initScanTrack > [12-04-23 11:34:56.2885] Plugins::CustomScan::Scanner::exitScanTrack > (1903) Calling: > Plugins::TrackStat::Plugin->trackstatrestore::exitScanTrack > [12-04-23 11:34:56.2888] > Plugins::TrackStat::Backup::RestoreModule::exitScanTrack (92) Deleting > existing TrackStat statistics > [12-04-23 11:34:56.4006] Plugins::TrackStat::Storage::deleteAllTracks > (1900) TrackStat: Clear all data finished at: 1335198896 > [12-04-23 11:34:56.4013] Plugins::CustomScan::Scanner::exitScanTrack > (1903) Calling: > Plugins::TrackStat::Plugin->trackstatrestore::exitScanTrack > [12-04-23 11:34:56.4016] Plugins::TrackStat::Backup::File::initRestore > (165) Restore from: > /Volumes/MediaFiles/squeezebox/trackstat_backup/trackstat_scheduled_backup_20120417_afi.xml > [12-04-23 11:34:56.4020] Plugins::CustomScan::Scanner::exitScanTrack > (1903) Calling: > Plugins::TrackStat::Plugin->trackstatrestore::exitScanTrack > [12-04-23 11:34:56.4024] > Plugins::TrackStat::Backup::File::resetScanState (238) Resetting scan > state. > [12-04-23 11:34:56.4026] Plugins::TrackStat::Backup::File::scanFunction > (261) Created a new Non-blocking XML parser. > [12-04-23 11:34:56.4031] Plugins::TrackStat::Backup::File::scanFunction > (274) Parsing next bit of XML.. > [12-04-23 11:34:56.4062] Plugins::TrackStat::Storage::findTrack (533) > findTrack(): URL: > file:///Volumes/MediaFiles/alac_mp3/alac/prabbit/AFI/Decemberunderground/2006%20%C2%AC%201-1%20%C2%AC%20Prelude%201221.m4a > [12-04-23 11:34:56.4065] Plugins::TrackStat::Storage::findTrack (534) > findTrack(): mbId: 2909837c-5320-4aef-a71f-3e673f72377f > [12-04-23 11:34:56.4072] Plugins::TrackStat::Storage::saveTrack (1039) > Saving play count, last played and added time in storage: 5, 1314199392, > 1318526768 > [12-04-23 11:34:56.4084] Plugins::TrackStat::Storage::findTrack (533) > findTrack(): URL: > file:///Volumes/MediaFiles/alac_mp3/alac/prabbit/AFI/Decemberunderground/2006%20%C2%AC%201-1%20%C2%AC%20Prelude%201221.m4a > [12-04-23 11:34:56.4087] Plugins::TrackStat::Storage::findTrack (534) > findTrack(): mbId: 2909837c-5320-4aef-a71f-3e673f72377f > [12-04-23 11:34:56.4094] Plugins::TrackStat::Storage::saveTrack (1079) > Store rating: 70 > : > : > : > [12-04-23 11:34:56.6914] > Plugins::TrackStat::Backup::File::handleEndElement (356) Finished > restoring TrackStat XML file > [12-04-23 11:34:56.6917] Plugins::TrackStat::Backup::File::doneScanning > (212) done Scanning: unlocking and closing > [12-04-23 11:34:56.6925] Plugins::TrackStat::Backup::File::doneScanning > (230) Restore completed at 2012-04-23 11:34:56 > [12-04-23 11:34:56.6929] Plugins::CustomScan::Scanner::exitScan (998) > Calling: scanExit on Plugins::TrackStat::Plugin->trackstatrestore > [12-04-23 11:34:56.6933] Plugins::CustomScan::Scanner::exitScan (1014) > Optimizing SQLite database > [12-04-23 11:36:44.7240] Plugins::CustomScan::Scanner::exitScan (1041) > Rescan finished of Plugins::TrackStat::Plugin->trackstatrestore > 4. Edited the TrackStat XML file to remove Â/%25C2 and processed the newly saved TrackStat file. No success. 5. Changed my file names removing the ¬/%25AC character and changed TrackStat to match it and processed that newly saved TrackStat file. No success. 6. I tried removing the MusicBrainz ID from the TrackStat file and processing that newly saved file. No success. I am defining success as being able to see the rating in TrackStat/LMS in the web UI. Again, my goal is to restore my ratings. After I get them in LMS, then I can begin the process of getting them to iTunes, but one step at a time. I'm out of ideas. What else can I do? -prabbit LMS details: Logitech Media Server Version: 7.7.3 - r33913 @ Wed Mar 28 02:01:55 PDT 2012 Operating system: Mac OS X 10.6.8 - EN - utf8 Platform Architecture: x86_64 Perl Version: 5.10.0 - darwin-thread-multi-2level Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1) ------------------------------------------------------------------------ prabbit's Profile: http://forums.slimdevices.com/member.php?userid=11142 View this thread: http://forums.slimdevices.com/showthread.php?t=94909
_______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
