Answered

Album Artist displaying with incorrect capitalisation


Userlevel 2
Badge +1

Hi

Just noticed a very strange problem in the Sonos app. I have albums by the group FireHouse (note the capital H in the middle). I also have albums by the group HammerFall (note the capital F in the middle).

In both cases the correct case artist names are stored in both the Artist and AlbumArtist tags in the FLAC tracks.

In the screenshot below you can see that for some reason FireHouse is displaying as Firehouse (with no capital H) in the artist list and also the track queue, but is showing correctly in the Now Playing screen!! I have tried removing my music library and setting it up from scratch and re-indexing and I get the same result

You can see from the screenshot below for HammerFall that the artist name is displaying correctly in all 3 parts of the screen

This is same issue in the PC app and iPhone and iPad apps

Any idea what is causing this?

Thanks

G

icon

Best answer by ratty 30 July 2021, 15:58

This is a longstanding issue. To save index space Sonos evidently uses a single-instance string store for tag values. On the first instance of the string it’s written to memory, with subsequent instances then referencing that storage location. The problem is that the string matching is case insensitive. 

In this example an instance of ‘Firehouse’ must have been encountered in the index scan before getting to ‘FireHouse’. ‘Firehouse’ was the string that was stored. Because the matching wasn’t case sensitive, the artist tag ‘FireHouse’ looked the same and hence points back to the location of ‘Firehouse’.

The Now Playing metadata displays ‘FireHouse’ correctly as this is fetched from the file at play time, not from the index.

 

View original

14 replies

Userlevel 7
Badge +17

Hi @gsa999 

Thanks for your post!

I’m not a programmer, but I would assume that code that did this would not be written by accident, so I’m wondering if there are other tags somewhere than does have “Firehouse” rather than “FireHouse” entry. Did you check Artist and AlbumArtist on both ID3v1 and ID3v2 tags? One of these may be getting used in preference over another, and both may exist side-by-side in one FLAC file.

The fact that the same doesn’t happen with “HammerFall” makes me even more sure that it’s a metadata issue.

I hope this helps.

This is a longstanding issue. To save index space Sonos evidently uses a single-instance string store for tag values. On the first instance of the string it’s written to memory, with subsequent instances then referencing that storage location. The problem is that the string matching is case insensitive. 

In this example an instance of ‘Firehouse’ must have been encountered in the index scan before getting to ‘FireHouse’. ‘Firehouse’ was the string that was stored. Because the matching wasn’t case sensitive, the artist tag ‘FireHouse’ looked the same and hence points back to the location of ‘Firehouse’.

The Now Playing metadata displays ‘FireHouse’ correctly as this is fetched from the file at play time, not from the index.

 

Userlevel 2
Badge +1

Thanks so much for the reply ratty.

I would never have thought of that! So it looks like Sonos is picking up the track called Firehouse from the first Kiss album !!! 

Even though the artist Kiss comes after FireHouse alphabetically I ripped my Kiss CD’s several years ago whereas FireHouse is much more recent, so presumably Sonos is finding the instance of the Kiss track name first based on the file date

Thanks for explaining the issue to me

 

Kind regards

G

The scanning order isn’t easy to determine. It likely depends on the way the file system is organised on the disk.

If you’re really fussy about this you could exclude the Kiss album and make a (re)scan. Then subsequently add the FireHouse content and update the index.

Userlevel 7
Badge +17

This is a longstanding issue. To save index space Sonos evidently uses a single-instance string store for tag values. On the first instance of the string it’s written to memory, with subsequent instances then referencing that storage location. The problem is that the string matching is case insensitive. 

In this example an instance of ‘Firehouse’ must have been encountered in the index scan before getting to ‘FireHouse’. ‘Firehouse’ was the string that was stored. Because the matching wasn’t case sensitive, the artist tag ‘FireHouse’ looked the same and hence points back to the location of ‘Firehouse’.

The Now Playing metadata displays ‘FireHouse’ correctly as this is fetched from the file at play time, not from the index.

 

Well done - this is all news to me! I bow to you, sir!

I’m afraid I’m showing my age, at least in terms of Sonos ownership. This issue was floating around the user forums 12 or more years ago.

Userlevel 7
Badge +17

Yeah, I think you guys got a lot of insight into Music Library when there was no other option for sources! :joy:

How quickly we get used to things these days. I just watched a TV program where someone patiently explained what a 3D printer did. I wondered why he bothered - until I realised the program was 10 years old!

Actually IIRC radio was also an available source, with the list curated by Sonos pre-TuneIn.

Userlevel 7
Badge +20

I encountered similar this when there was a bug with one of the Beta versions a couple of years ago. It affected random albums across my collection. 

In order to ensure all my library was re-indexed. and working as expected, in the Sonos app I added  a new shared music folder with a single file in it and removed the one with all my music in. 

Then did a re-index and then re-added my main music folder and removed the single file folder and re-indexed again.

My recollection is that this is a ‘feature’ rather than a bug.

I suspect the temporary addition of your new folder tweaked the scanning order serendipitously. 

Userlevel 7
Badge +17

Actually IIRC radio was also an available source, with the list curated by Sonos pre-TuneIn.

That makes sense - I think I was listening to SHOUTcast on WinAMP over 20 years ago. “Grove Salad” - still running today and on TuneIn!

Actually IIRC radio was also an available source, with the list curated by Sonos pre-TuneIn.

That makes sense - I think I was listening to SHOUTcast on WinAMP over 20 years ago. “Grove Salad” - still running today and on TuneIn!

If you mean SomaFM’s Groove Salad then it’s not on TuneIn (or Sonos Radio) in the UK owing to legal issues. It’s on myTuner Radio though.

Userlevel 7
Badge +17

If you mean SomaFM’s Groove Salad then it’s not on TuneIn (or Sonos Radio) in the UK owing to legal issues. It’s on myTuner Radio though.

I did indeed! Ah yes - I think it’s been a while since I listened. I have a dead My Sonos link to it on TuneIn.

On other Music Library Index fumble can be caused by a NAS drive’s Recycle bin. In case of duplicate tracks, the Indexer ignores the second and following occurrences. If the tag editor places the original  copy of an edited track in the recycle bin and the recycle bin is scanned first, the old track is discovered first and the updates are ignored. (the indexer does not check every character in the metadata) This can be very frustrating for the user because updates are seemingly ignored and the user can prove that the updated data is being ignored. The NAS typically will allow the recycle bin to be disabled.

Reply