-
Notifications
You must be signed in to change notification settings - Fork 308
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
getYear() returning null #156
Comments
Hi @klausenbusk, I just had a quick debugging session an saw that the file has the record date set but not the year. Following test code shows what I mean:
|
Oh. |
So What do you think? I'm willing to open a PR if it sounds good to you? |
If I remember correctly TYER was probed but it was not set. A look with a hex code editor comes to the same result. Question is if getYear() should fall back to TDRC if TYE and TYER are not set but I tend to not doing so as it is a different field. |
I don't like the fact that ID3v24Tag allows users to get/set TYER and TDAT - those are not valid ID3 v2.4 frames.
It is probably best to go with option 2 so that the interface remains consistent between |
Hi
I'm using mp3agic as part of my Java music player project, it works well, but
getYear
always returnsnull
with my test data.So I tried reading the year with the mp3agic exampe to rule out any programmatic errors from my side. Running the example I get:
As you can see, getYear returns null. I also tried reading the id3 tags with another library (easytag which use id3lib), and it works perfectly (I get year 2015).
Test data:
Moped_Genius_-_Fall_In_Love.zip
Downloaded from: https://www.jamendo.com/track/1562762/fall-in-love (License)
- Kristian
The text was updated successfully, but these errors were encountered: