Bugzilla – Bug 4279
Browse years with tracks without ALBUM tag
Last modified: 2011-11-06 23:23:20 UTC
I'm not sure if this is a bug or the correct behaviour, but to me it feels like a bug. The problem is in the browse years menu on the SqueezeBox. If I have tracks without ALBUM tags these are always shown below the "Unknown" year independent if they actually have a YEAR tag or not. The correct behaviour would be to only display them below "Unknown" if they don't have a YEAR tag but display them under the correct year if a YEAR tag exist.
I used an album ripped into mp3 files, removed the album tag, and set the year tag to 1845. It did not appear in the browse years list.
I think the problem is that the Years menu is using albums.year in the SQL instead of tracks.year. This result in that all tracks connected to the "No Album" row in the albums table will be presented as "Unknown" year even though the track might have a year in tracks.year.
Currently, browse by year uses year.id for the years. see also bug 4637 and bug 5211. code location: Slim/Schema/Year.pm and Slim/Schema/ResultSet/Year.pm
related to bug 5211
Unassigned bugs cannot have a priority.