Skip to content

Inconsistent handling of TRACKNUMBER vs DISCNUMBER split fields in ogg tags. #543

Closed

Description

@milesegan

Reproducer

Try to parse a ogg or flac tag with a DISCNUMBER like 1/3.

Summary

It looks like there's some special handling for split values like 3/5 in the TRACKNUMBER field in ogg tags:

k if k.eq_ignore_ascii_case(b"TRACKNUMBER") => {

But I don't see anything similar for DISCNUMBER and when I parse a tag with a 1/3 type of tag both disk() and disk_total() come back empty.

Expected behavior

Parsing a DISCNUMBER tag like 1/3 should come back with a disk & total disks of 1 and 3.

Assets

No response

Activity

  1. added
    bug
    on Aug 23, 2025
  2. added this to the 0.23.0 milestone on Aug 23, 2025
  3. Serial-ATA commented on Aug 23, 2025

    @Serial-ATA
    Owner

    Yep, just a matter of changing that special case to support both TRACKNUMBER and DISCNUMBER

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions