Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Changing 'ID3' to 'tag' and 'year' to 'date'
« previous next »
  • Print
Pages: [1]

Author Topic: Changing 'ID3' to 'tag' and 'year' to 'date'  (Read 2278 times)

Offline adam917

  • Member
  • *
  • Posts: 124
Changing 'ID3' to 'tag' and 'year' to 'date'
« on: March 14, 2007, 12:29:46 PM »
As Rockbox supports other formats' tag schemes (Vorbis Comments for Ogg Vorbis, FLAC, & Speex, as well as the native tag formats of other supported codecs, I feel that it is inappropriate to call all tags 'ID3' at this point. Is this in the works in the menu/settings change?

Also, it would make more sense to change the label of the 'year' tag to 'date', as the more modern audio formats that Rockbox supports an actual date in the field; not just the year alone.

No need to change the WPS variables (or whatever they are called), though it might make sense to change the affected ones, provided this change occurs.

What does anyone here (especially heavy non-MP3-format users) think of this?
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #1 on: March 14, 2007, 01:32:09 PM »
Renaming "ID3" to something more generic is agreed to be a good thing, it just needs someone to do it...

I'm not sure about the year/date issue - even though many tag formats support date, not all do, and afaik, most tagging software just puts the year in there anyway.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #2 on: March 15, 2007, 02:33:53 AM »
Not to mention that Rockbox only makes use of the "Year" part of "Date" anyway, and assumes YYYY-blah format (it doesn't care what anything after the first four digits are, if I understand properly).

Anyway, this is all well and good, but both of these belong as separate feature requests, really.
Logged

Offline adam917

  • Member
  • *
  • Posts: 124
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #3 on: March 15, 2007, 02:44:18 PM »
Quote from: Llorean on March 15, 2007, 02:33:53 AM
Not to mention that Rockbox only makes use of the "Year" part of "Date" anyway, and assumes YYYY-blah format (it doesn't care what anything after the first four digits are, if I understand properly).

Anyway, this is all well and good, but both of these belong as separate feature requests, really.
Actually, when I play my FLAC & Vorbis files in there that have the full YYYY-MM-DD format, it shows all of it.
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #4 on: March 15, 2007, 02:46:54 PM »
Database only indexes the year part though.
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #5 on: March 15, 2007, 06:27:45 PM »
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.
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #6 on: March 16, 2007, 07:10:53 AM »
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.

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.
Logged

Offline adam917

  • Member
  • *
  • Posts: 124
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #7 on: March 16, 2007, 04:12:53 PM »
Quote from: roolku on March 15, 2007, 02:46:54 PM
Database only indexes the year part though.
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...
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: Changing 'ID3' to 'tag' and 'year' to 'date'
« Reply #8 on: March 16, 2007, 07:12:11 PM »
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.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Changing 'ID3' to 'tag' and 'year' to 'date'
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.102 seconds with 14 queries.