Closed
Description
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.
} else if (type == TYPE_SORT_ALBUM) {
return parseTextAttribute(type, "TSO2", ilst);
TYPE_SORT_ALBUM should be TSOA
} else if (type == TYPE_SORT_ARTIST) {
return parseTextAttribute(type, "TSOA", ilst);
TYPE_SORT_ARTIST should be TSOP
} else if (type == TYPE_SORT_ALBUM_ARTIST) {
return parseTextAttribute(type, "TSOP", ilst);
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
- Grab a M4A file with sort album field in tag or add the field
- Get the Metadata and check TYPE_SORT_ARTIST contains the sort album value
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
- You will email the zip file produced by
adb bugreport
to [email protected] after filing this issue.