Skip to content

[Feature]: Map Matroska AlbumArtistSort and ComposerSort #116

Closed

Description

@decriptor

Problem Statement

Tag.AlbumArtistSort and Tag.ComposerSort are no-ops on a Matroska tag. The getter returns null and the setter stores nothing.

Title, artist, and album sort names are already mapped: nested SORT_WITH on TITLE and ARTIST, and the flat names TITLE_SORT, ARTIST_SORT, and ALBUM_SORT.

Proposed Solution

Map the two remaining sort properties the same way as ArtistSort and AlbumSort.

  • Album-artist sort is SORT_WITH on the album-level ARTIST (target type value 50).
  • Composer sort is SORT_WITH on COMPOSER.

Also read a flat tag when the file already has one, beside the nested SORT_WITH, using the same flat-name style as ARTIST_SORT and ALBUM_SORT. Clearing the property removes the nested sort and the flat name at every level the getter can see.

SORT_WITH is the sort tag defined at https://www.matroska.org/technical/tagging.html. Implement from that page and RFC 9559.

Alternatives Considered

Writing a second simple tag such as a free-form string on the file title. Players that look for SORT_WITH would miss it.

Additional Context

The base Tag properties already exist. ASF and MP4 override them. Matroska does not. This stays open after #53 closes on the tag round-trip.

Activity

  1. added
    enhancement
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 22, 2026
    267ea3f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions