I submitted the change for Trackstat backup restoration, which Erland has applied to his code. I'm not sure what version it went into - it's probably a good idea to get the latest versions installed to be sure you have the change.
For each statistic in the backup file being restored, it first looks for an exact path/filename match in the SC database. If it isn't found, it tries to re-associate the statistic with a song having the same "artist/album/song name" path on the end of the URL. I also stripped the file extension off in this check. So, as Erland says, if you make a full trackstat backup (not a bad thing to do anyway), and then a full rescan, and restore the trackstat backup, it should marry the stats back to the new files. It works for me, but it is a bit specific still at the moment, in that my music storage path structure is "M:\Music\Phil's Music\<genre>\<artist>\<album>\<filename>". As long as the last part \...\...\<filename> part doesn't change, you will be okay. A further enhancement could be made to the restore functionality to recursively look back through shorter end-parts of the URLs until a match is found, but there would be a concern that a song may be found on another album by another artist. My current change was kept simple and is therefore still fairly quick. I think I also added additional logging, so if it doesn't work, you could turn the logging up to info or debug level, and look in the log file. _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
