erland;336006 Wrote: 
> 
> I'm sorry if it feels like you are doing basic tests of the plugin, but
> I'm not able to reproduce this in my own setup so information about the
> behavior of the following sequence would help.
> 
> Could you try to:
> 1. Rate a track with apostrophe which was rated before
> 2. Do a TrackStat backup
> 
> 

Unfortunately, I wasn't able to do this test.  I didn't realize it at
the time, but after clearing the cache, rescanning, and restoring the
TrackStat backup a couple of days ago, the content of the xml file
changed. 

First off, it appears the duplicate records disappeared -- the xml file
is much smaller than before the clear/rescan/restore I did on Sep 2:

-rwx------  1 gbreit  gbreit  9370010 Sep  1 10:45
trackstat_scheduled_backup_20080901.xml
-rwx------  1 gbreit  gbreit  9389310 Sep  2 03:11
trackstat_scheduled_backup_20080902.xml
-rwx------  1 gbreit  gbreit  7594308 Sep  3 03:03
trackstat_scheduled_backup_20080903.xml
-rwx------  1 gbreit  gbreit  7594308 Sep  4 03:03
trackstat_scheduled_backup_20080904.xml


Furthermore, now I have several tracks containing apostrophes which
show ratings in the SC GUI -- that was not the case before. However,
there is still a large number of tracks that do not show ratings in the
SC GUI, and what's worse, their ratings have disappeared from the latest
TrackStat backup files. So there are no longer any tracks that show
ratings in the TrackStat backup file, but not the SC GUI. In other
words, no tracks that match the description in your first instruction
above.

Furthermore, after the rescan, all instances of the apostrophe
character in the URLs of the <track> records have been replaced by
'%2527'.  The <historyentry> records still have apostrophes.

I am really beginning to suspect that this is related to how the
apostrophe is encoded. I don't know why there are two different
representations of that character...

Here's what I decided to do: Went back to the last TrackStat backup
prior to the SC7.1 upgrade, which was when all the duplicate entries
appeared. Did a global search and replace to substitute %2527 for the
apostrophe character. Cleared the cache, rescanned, and restored from
this altered backup. The idea here is that the altered backup should be
similar format to the current backup, except without the missing
ratings.

This worked.  All my old ratings are restored, as well as the play
counts.  The downside is that I have to re-rate all tracks I added
since the 7.1 update a month ago -- not a big deal, only 17 albums. 
Much better than 100s otherwise. 

Thanks again for your help debugging this. You pointed me in the right
direction to solve this myself. Unfortunately, we never got to the
bottom of *why* this happened, and why it has evidently only happened
to me.

Greg


-- 
gbreit
------------------------------------------------------------------------
gbreit's Profile: http://forums.slimdevices.com/member.php?userid=4304
View this thread: http://forums.slimdevices.com/showthread.php?t=51821

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to