-
Notifications
You must be signed in to change notification settings - Fork 476
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
Incorrect mapping of Metadata to tag fields #1302
Comments
Thanks for flagging - I agree things aren't quite right here, but I'm not exactly sure what the right mapping is. With reference to https://mutagen-specs.readthedocs.io/en/latest/id3/id3v2.4.0-frames.html#other-text-frames
I agree with this, it seems unambiguous from the ID3 spec I linked:
This isn't obvious to me. We map
Whereas the ID3 spec describes
And TPE2 is defined as (and we map this to
So is it just a typo in the ID3 spec and it should just say "[...] instead of the performer (TPE1) [...]"?
I couldn't see TSO2 in the page I linked above, but I do see it here: https://wiki.hydrogenaud.io/index.php?title=Foobar2000:ID3_Tag_Mapping (and there TSOP is more clearly linked to TPE1, and TPE2 is more clearly considered 'album artist'). I'll send a change based on the hydrogenaud.io link. |
All of these are different artist/performers This would be I believe what most people should be using for Artist value in applications? and then this would be your alternative sort value Edit: TPE2 must be a typo. Why would they not use the main field for artist/performer? I think that TSO2 is what is used as an alternative sort for TPE2. Artist = TPE1 and Album Artist = TPE2
It is listed on mutagen-specs in the Off-Spec Frames section: https://mutagen-specs.readthedocs.io/en/latest/id3/id3v2-other-frames.html?highlight=tso2 I am not sure how supported it is in ID3 or not as it's not my area of expertise. It looks to be referenced a fair number of places. |
Everything that I can find while searching online shows TPE1 as the main artist and TPE2 as additional/album artist. https://mutagen-specs.readthedocs.io/en/latest/id3/id3v2.4.0-frames.html?highlight=tsop#tpe1
here as well https://docs.mp3tag.de/mapping/#albumartist |
Yeah, this makes sense to me - sorry my comment was a bit confusing.
Ah great, thanks for that link, I hadn't seen that. |
The ID3 tags are documented here: https://wiki.hydrogenaud.io/index.php?title=Foobar2000:ID3_Tag_Mapping The MP4 fourcc types are documented here: https://mutagen.readthedocs.io/en/latest/api/mp4.html#mutagen.mp4.MP4Tags From the field definitions at the top of this file: * `TYPE_SORT_ALBUM = 0x736f616c = 'soal'` * `TYPE_SORT_ARTIST = 0x736f6172 = 'soar'` * `TYPE_SORT_ALBUM_ARTIST = 0x736f6161 = 'soaa'` Issue: #1302 #minor-release PiperOrigin-RevId: 627486902
This should be fixed by the commit above. |
No worries!
Glad I could help. Thanks for fixing this! |
The ID3 tags are documented here: https://wiki.hydrogenaud.io/index.php?title=Foobar2000:ID3_Tag_Mapping The MP4 fourcc types are documented here: https://mutagen.readthedocs.io/en/latest/api/mp4.html#mutagen.mp4.MP4Tags From the field definitions at the top of this file: * `TYPE_SORT_ALBUM = 0x736f616c = 'soal'` * `TYPE_SORT_ARTIST = 0x736f6172 = 'soar'` * `TYPE_SORT_ALBUM_ARTIST = 0x736f6161 = 'soaa'` Issue: androidx#1302 PiperOrigin-RevId: 627486902
Version
Media3 main branch
More version details
These mappings are mixed up and are causing music to be sorted wrongly in Auxio Music Player. Artist Vitalism was showing up in among artists starting with D and it ended up due to having a sort album field in the mp4 tag with an album starting with D.
All 3 below seem to be mixed up.
TYPE_SORT_ALBUM should be TSOA
TYPE_SORT_ARTIST should be TSOP
TYPE_SORT_ALBUM_ARTIST should be TSO2
Devices that reproduce the issue
Fairphone 4 running Android 13
Devices that do not reproduce the issue
n/a
Reproducible in the demo app?
Not tested
Reproduction steps
Expected result
TYPE_SORT_ARTIST contains the value of the sort artist tag field
Actual result
TYPE_SORT_ARTIST contains the value of sort album tag field
Media
Not Applicable
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: