Rockbox General > Rockbox General Discussion
Changing 'ID3' to 'tag' and 'year' to 'date'
safetydan:
There are two date related structures in the metadata for tracks in Rockbox.
The first one is the "date string" which stores the actual string found in the date related tag in the file. This is the one you see when you go to "Show ID3 Info" for a file. However, it's not used anywhere else in Rockbox.
The second one is the "year" field. This is an integer (a number basically) that is used by the database for sorting and grouping. I believe it's also the one used by the WPS. There is some code in the metadata reading that tries to generate a year from the above "date string" which is what Llorean is talking about.
So basically, since the date string in Ogg files and so forth can be in arbitrary format, Rockbox can't really use it for much. There's no guarantee we'll be able to turn it in to a usable date. So for now I think Rockbox will just stick with the year field.
Lear:
--- Quote from: safetydan on March 15, 2007, 06:27:45 PM ---The first one is the "date string" which stores the actual string found in the date related tag in the file. This is the one you see when you go to "Show ID3 Info" for a file. However, it's not used anywhere else in Rockbox.
The second one is the "year" field. This is an integer (a number basically) that is used by the database for sorting and grouping. I believe it's also the one used by the WPS. There is some code in the metadata reading that tries to generate a year from the above "date string" which is what Llorean is talking about.
--- End quote ---
The WPS (and the ID3 info screen) uses the string if there is one, otherwise it checks the numeric value. So it is really only the database that ignores the string.
adam917:
--- Quote from: roolku on March 15, 2007, 02:46:54 PM ---Database only indexes the year part though.
--- End quote ---
This easily defeats the purpose of using the field for sorting, as multiple albums released in the same year may fall out of chronological without having something else to sort on after the year (and just going alphabetical for album names). :-( I guess I'll just stick to folders...
safetydan:
The database couldn't really use the date string for sorting as there's no guarantee that it's a sortable format. For example, some people have their files tagged with mm/dd/yy format while others are dd-mm-yyyy, and some are even wackier with something like "Thursday, 13 March 1999". We can't deal with all possible combinations so the database just use the numeric year.
Navigation
[0] Message Index
[*] Previous page
Go to full version