Skip to content

Incorrect mapping of Metadata to tag fields #1302

Closed
@bryanparadis

Description

@bryanparadis

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

  1. Grab a M4A file with sort album field in tag or add the field
  2. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions