Yes, the song title is Dominion/Mother Russia. The / is part of the title. It's for this reason (and other "odd" characters that I use ¬ character, because I know for certain that ¬ does not appear in any artist name or album or song title). Anyway, the queries worked and the results (CSV) are in the attached zip files.
db_query_trackstat_results.zip
Results 21 to 30 of 38
-
2012-04-30, 13:32 #21Senior Member
- Join Date
- Apr 2007
- Posts
- 153
-
2012-04-30, 13:45 #22
Ok, the / character is definitely the issue because it doesn't exist in the TrackStat files and this track doesn't seem to have any musicbrainz id in the tracks table and due to this the TrackStat backup isn't able to restore the rating. Do you know if there is a reason why the musicbrainz data is missing ? Have you removed it from this track or does the TrackStat backup (which have a musicbrainz id) refer to another music file ?
I'll try in my own setup if I can reproduce the issue, but before I do that, could you have renamed this file and added the / characters since the rating was last changed in TrackStat ?
Does the other tracks which have problems also have a / character in the file name ?Erland Isaksson (My homepage)
(Developer of many plugins/applets (both free and commercial).
If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
You may also want to try my Android apps Squeeze Display and RSS Photo Show
Interested in the future of music streaming ? ickStream - A world of music at your fingertips.
-
2012-04-30, 14:40 #23Senior Member
- Join Date
- Apr 2007
- Posts
- 153
To be honest, I don't know. It's possible that this file hasn't yet gotten a musicbrainz ID. Well I just ran this query and it returned thousands of tracks, none of which have a musicbrainz ID.
Originally Posted by erland
Then I ran the same query but for '%.mp3'.Code:select * from tracks where url like '%.m4a'
None of the m4a files have musicbrainz IDs and only 1955 mp3 tracks have musicbrainz IDs, which matches pretty closely to the ~2200 mp3 tracks that have a rating after a TrackStat restore.
This has been a complicated thread to follow, but here's a quick recap of what I have done.
Originally Posted by erland
1. I had .flac files with musicbrainz IDs (well, not all of them, but the vast majority).
2. Using XLD on a Mac I converted .flac to Apple Lossless (.m4a).
My guess is that in the process of conversion I lost the musicbrainz ID.
I really think the '/' issue is a red herring and you shouldn't chase it right now. It may be an issue, but I suspect it's a minor one.
Originally Posted by erland
Since most of my music files have lost their musicbrainz ID, let me spend a day or two getting the musicbrainz IDs back into my files. After they're back, I'll run the TrackStat restore again and report back.
-
2012-04-30, 15:43 #24
Ok, this will make the TrackStat restore fail, because changing the file name from flac to mp4 will make the restore stop working unless:
1. You have musicbrainz identities
or
2. You have the "Find alternative files" option active during the restore operation (which will generally make the restore take a lot longer time)
However, for the track we have just looked at, alternative 2 with the "Find alternative files" option doesn't work because it's not just the file extension that differs but also the extra / in the file name. So the only way to make the restore work would be through musicbrainz id's which exists in the TrackStat backup file (which refers to .flac file).
The "Find alternative files" option will try to find a matching track by skipping the file extension and skipping the first part of the path (typically drive letter or directory where the music folder has been mounted). It's main purpose is to make it possible to reconnect ratings if you have changed drive. So if the extra '/' character in this particular file isn't a general problem, it might be worth to run the restore with "Find alternative files" option enabled as it will be able to handle the .flac to .m4a file name change. However, getting musicbrainz identities into all the files would of course be preferred as this makes it possible to run without the "Find alternative files" option and this makes the restore operation run a lot faster.
Ok sounds good, after you have got the musicbrainz id tags back remember that you need to do a standard rescan in SBS/LMS to get them into the "tracks" table before you start the TrackStat restore.
Let me know if the problems remain after you have tried this.Erland Isaksson (My homepage)
(Developer of many plugins/applets (both free and commercial).
If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
You may also want to try my Android apps Squeeze Display and RSS Photo Show
Interested in the future of music streaming ? ickStream - A world of music at your fingertips.
-
2012-05-01, 09:35 #25Senior Member
- Join Date
- Apr 2007
- Posts
- 153
Before I attempt to restore my TrackStat ratings, I am making sure I have everything in place. To do that, I
1. Got the musicbrainz IDs back into my files. I used Jaikoz on a Mac to do it. According to Jaikoz 19,246 of my 20,910 songs have musicbrainz IDs.
2. Deleted my LMS cache and preferences.
3. Rescanned my files.
4. Reinstalled TrackStat and Database Query plugins.
5. Have NOT yet tried to restore my ratings.
Database Query question...
After doing the above, when I look at Song Info and then click View Tags, I see the musicbrainz IDs are there. Below is the details for the Dominion/Mother Russia track we've been looking at. (It's hard to read, but you can see there are values for the musicbrainz are there. This is the track ID: b8bb131f-5428-4067-bb96-31412c9a48d0.)
This is what Database Query returns for my LMS stats (notice how Database Query thinks only 6496 tracks have a musicbrainz ID):
This is what Database Query returns when I query specifically for the Dominion/Mother Russia track (no musicbrainz ID).
Originally Posted by Squeezebox Server Statistics
Why the discrepancy between Jaikoz and Database Query for the number of tracks with a musicbrainz ID? Why does Jaikoz tell me that my Dominion/Mother Russia file has a musicbrainz ID? Why does viewing track info show me the musicbrainz ID for this same file? But when I run a database query, it says the file does not have a musicbrainz ID?
Originally Posted by select * from track_statistics where url like '%Sisters%Floodland%Dominion%mother%'
It seems like I should figure this out before attempting to restore TrackStat data.
-
2012-05-01, 11:22 #26
Yes, this definitely looks strange.
Can you check what the "tracks" table shows for the track with Database Query plugin ?
TrackStat will copy information from "tracks" table, so if the information hasn't been scanned by standard SBS/LMS scanner it means that tracks.musicbrainz_id is empty and then when TrackStat copy it the track_statistics.musicbrainz_id will also be empty. If track_statistics.musicbrainz_id is empty, it means that the TrackStat restore won't be able to use musicbrainz id during restore.Code:select * from tracks where url like '%Sisters%Floodland%Dominion%mother%'
The "View Tags" page shows what's in the file, it doesn't show what's in the database, so even if it is in the file there might be some reason why the standard SBS/LMS scanner isn't able to scan it, which is very strange.
I'm not sure which tagging format that's used for m4a files, looking at the SBS/LMS code I suspect it either expects a tag:
MusicBrainz Track Id
or
UFID
or possibly
MUSICBRAINZ_ID
FLAC files uses MUSICBRAINZ_TRACKID (or possibly MUSICBRAINZ_ID)
And none of these seems to exist in your file when using the "View Tags" function. So assuming Jaikoz does the right thing, I suspect you might have found a bug in SBS/LMS scanner related to m4a files.Erland Isaksson (My homepage)
(Developer of many plugins/applets (both free and commercial).
If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
You may also want to try my Android apps Squeeze Display and RSS Photo Show
Interested in the future of music streaming ? ickStream - A world of music at your fingertips.
-
2012-05-01, 12:57 #27Senior Member
- Join Date
- Apr 2007
- Posts
- 153
Results from the query. As you can see, there is no musicbrainz ID.
This is what I see when I look at the extended tags in mp3tag. The m4a file appears to be using 'MusicBrainz Track Id' (at least that's what I see in mp3tag).
Originally Posted by select * from tracks where url like '%Sisters%Floodland%Dominion%mother%'
So, do I understand you correctly, that this appears to be more and more likely an LMS scanning issue with m4a tracks?
-
2012-05-01, 14:07 #28
Since the tracks.musicbrainz_id column is empty it means that the issue is either:
- Jaikoz using incorrect tag names
or
- SBS/LMS scanner reading incorrect tag names
The Picard (Musicbrainz official tagger) uses the following mapping:
http://wiki.musicbrainz.org/Picard_Tag_Mapping
The iTunes MP4 column says: ----:com.apple.iTunes:MusicBrainz Track Id
And SBS/LMS uses: MusicBrainz Track Id
So possibly it might be a problem with Jaikoz using capital letters in the tag name.
Maybe you can create a copy of a file and try to tag it with Picard and see if it tags it differently ?Erland Isaksson (My homepage)
(Developer of many plugins/applets (both free and commercial).
If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
You may also want to try my Android apps Squeeze Display and RSS Photo Show
Interested in the future of music streaming ? ickStream - A world of music at your fingertips.
-
2012-05-01, 15:22 #29Senior Member
- Join Date
- Apr 2007
- Posts
- 153
I'm not seeing anything different using Picard. By the way, the screenshot in my previous post showed MP3TAG, not Jaikoz. I wanted to show that multiple editors/taggers were showing the same thing.
I've set all scanner logging options to debug and cleared my library. I am scanning now and will look at the log file for anything interesting. If I see anything, I'll post it.
How would I go about confirming the issue is an LMS scanning bug?
-
2012-05-01, 21:10 #30
I would say that if the scanner doesn't pickup the Musicbrainz tag from a file that has been tagged with Picard (the official Musicbrainz tagger), it can be considered to be a LMS scanner issue, in this case please register a bug for it at http://bugs.slimdevices.com unless there already is one registered.
Erland Isaksson (My homepage)
(Developer of many plugins/applets (both free and commercial).
If you like to encourage future presence on this forum and/or third party plugin/applet development, consider purchasing some plugins)
You may also want to try my Android apps Squeeze Display and RSS Photo Show
Interested in the future of music streaming ? ickStream - A world of music at your fingertips.

Reply With Quote

