PDA

View Full Version : Move Trackstat



jazztime
2010-03-25, 15:56
I'm have moved all my music from Windows to Mac and I have tried to restore my trackstat backup on the Mac, but with no success. Is this possible at all? My parent directory is of course another now (not F:/ anymore, now /Volumes/Music), but the subdirectories and filenames are the same. The logfile says: "No matching alternative path found for file:///F:/ABCD...." Can someone please give me some advise? Or is my trackstats lost forever? Thanks in advance.

erland
2010-03-25, 21:09
Could you describe:
1. What was the old path ?
2. What is the new path ?
3. How does the url field look for one of the file in the TrackStat backup xml file
4. What does the log say exactly for a specific file ?

It's important that the files exist in the standard Squeezebox Server database before you try to restore TrackStat but I suppose you have already performed a standard rescan ?

If most of the path looks the same you should always be possible to use a text editor and its "Replace all" function to correct the TrackStat backup file. However, the intention is that the alternative path finding logic in TrackStat should handle this, so I'd like to hear the answerss on the above questions before you try this.

jazztime
2010-03-26, 00:54
Thank you for the fast reply! I made a mistake. Actually I see today that moving the trackstats did work. What led me to think it was not is that the stats does not show in the default SQC webpage. I'm on 7.5 on my mac. In 7.4.2 in Windows in the webpage, you can see the ratings (indicated by stars) but I can not see this on my Mac (7.5) Don't know if this is related to 7.5, to Mac or my doing something wrong?

jazztime
2010-03-26, 01:44
Argh, I see now that only some of the trackstats was moved :-( So here's the answers to you questions:
1. The old path was F:\jazz\artist\album\track.flac
2. New path is /volumes/music/jazz/artist/album/track.flac
3.The Url Field for one of the files in the backup xml file looks like this: <url>file%3A%2F%2F%2FF%3A%2FJazz%2FStenson%2C%2520Bobo% 2F1997%2520War%2520Orphans%2F08%2520-%2520Melancholia.Flac</url>
4. The log for one file says: [10-03-25 19:56:34.5647] Plugins::TrackStat::Storage::saveTrack (982) No matching alternative path found for file:///F:/Jazz/Johansson,%20Jan/1961%20Innertrio/03%20-%20Svallv%E5gor.Flac.

erland
2010-03-26, 09:56
4. The log for one file says: [10-03-25 19:56:34.5647] Plugins::TrackStat::Storage::saveTrack (982) No matching alternative path found for file:///F:/Jazz/Johansson,%20Jan/1961%20Innertrio/03%20-%20Svallv%E5gor.Flac.

Is the file accessible as:
/Volumes/Jazz/Johansson,%20Jan/1961%20Innertrio/03%20-%20Svallv%E5gor.Flac

Or as:

/Volumes/Jazz/Johansson, Jan/1961 Innertrio/03 - Svallvågor.Flac

I suspect it's the later and then it looks like Windows have encoded the path's an extra time. I suspect it might be possible to handle this in TrackStat but it isn't supported at the moment.

If this is the case, could you try to open up the TrackStat backup xml file in a text editor and replace all occurences of:
%25
With:
%

I'm not completely sure this will work but there is a small chance it will.

jazztime
2010-03-30, 06:39
Erland, thanks for helping, and thank you for your great plugins. I did a new restore, and now it seems that all the ratings are okay. I must have done something wrong the first time. But I still do not see the ratings in the web interface on my Mac (7.5) as I did in WIndows (7.4)

erland
2010-03-30, 09:20
But I still do not see the ratings in the web interface on my Mac (7.5) as I did in WIndows (7.4)

Where do you expect to see them ?

If you expect to see them in the track lists in the normal browse menus, you will need to configure a Title Format that contains one of the TrackStat keywords.

Or are you saying that they aren't shown in the TrackStat browse menu ?