Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'date' to id3 mapping #618

Closed
wants to merge 1 commit into from
Closed

Fix 'date' to id3 mapping #618

wants to merge 1 commit into from

Conversation

pR0Ps
Copy link

@pR0Ps pR0Ps commented Feb 4, 2017

According to the date docs, the 'date' tag holds "the date in which a release was made available through some sort of distribution mechanism".

Relevant excerpts from the id3v2.4 spec:

  • TDRC: "Recording time [...] when the audio was recorded".
  • TDRL: "Release time [...] when the audio was first released"
  • TDOR: "Original release time [...] when the original recording of the audio was released"

Currently the 'date' tag is mapped to TDRC (recording time). This commit changes the mapping to TDRL (release time) to bring the two tag types more in line with each other.

According to the [date docs](https://musicbrainz.org/doc/Release/Date),
the 'date' tag holds "the date in which a release was made available
through some sort of distribution mechanism".

Relevant excerpts from the [id3v2.4 spec](http://id3.org/id3v2.4.0-frames):
 -'TDRC': "Recording time [...] when the audio was recorded".
 -'TDRL': "Release time [...] when the audio was first released"
 -'TDOR': "Original release time [...] when the original recording of
  the audio was released"

Currently the 'date' tag is mapped to 'TDRC' (recording time). This
commit changes the mapping to 'TDRL' (release time) to bring the two tag
types more in line with each other.
@samj1912
Copy link
Collaborator

samj1912 commented Feb 4, 2017

It is kept as TDRC for program compatibility reasons.
from foobar2000 tag mappings.

The TDRC frame is officially to be used for the recording time, TDRL is for the release time but TDRC is generally used by most programs.

The same goes for the rest of tagging programs.

@Freso
Copy link
Member

Freso commented Feb 4, 2017

Two things:

  1. Is this how the tags are actually used in the wild?
  2. Does the current mapping originate from mutage?

If 1., then certainly, +100 from me.
If 1. and 2., then please submit a patch upstream to mutagen as well. :)

Edit: Ah, I see @samj1912 is faster than me. 👍

@Sophist-UK
Copy link
Contributor

I seem to remember asking this myself a few years ago. I guess we need a comment in the code to point these things out.

@pR0Ps
Copy link
Author

pR0Ps commented Feb 4, 2017

I submitted an issue (well, question) to mutagen asking about this behavior as well: quodlibet/mutagen#290 .

If it turns out that it's something that should be fixed, I'll fix up this PR, otherwise, I'll close it.

@samj1912
Copy link
Collaborator

samj1912 commented Feb 6, 2017

Looking at the reply by @lazka on quodlibet/mutagen#290 I think we can close this.

@zas zas closed this Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants