Skip to content

Problem with parsing WFED tag in id3v2 #589

Closed

Description

@NikkoFox

Reproducer

I'm reading a file through Probe, but I get the error TextDecode("Found invalid encoding")

01. Red Beast.mp3

Summary

After investigating the issue, I discovered that mutagen in Python reads correctly. After narrowing down the search, I found the problem with WFED. I'm new to this and can't pinpoint the cause, but lofty doesn't find any encodings for this tag because encoding_byte > 100.

I discovered that if WFED is read as a URL Frame, everything works correctly.

// WFED (Podcast URL), GRP1 (Grouping), MVNM (Movement Name), MVIN (Movement Number)
"GRP1" | "MVNM" | "MVIN" => TextInformationFrame::parse(reader, id, flags, version)?.map(Frame::Text),
"WFED" => UrlLinkFrame::parse(reader, id, flags)?.map(Frame::Url),
Image

I think create PR, but I'm new to Rust, and especially to mp3 tags. But maybe you could look into this issue and the suggested fix.

From mutagen debug
Image

Expected behavior

No response

Assets

No response

Activity

  1. added
    bug
    on Jan 14, 2026
  2. NikkoFox commented on Jan 14, 2026

    @NikkoFox
    ContributorAuthor

    Or just remove WFED string

    // WFED (Podcast URL), GRP1 (Grouping), MVNM (Movement Name), MVIN (Movement Number)
    "GRP1" | "MVNM" | "MVIN" => TextInformationFrame::parse(reader, id, flags, version)?.map(Frame::Text),
    i if i.starts_with('W') => UrlLinkFrame::parse(reader, id, flags)?.map(Frame::Url),
  3. added this to the 0.23.0 milestone on Jan 14, 2026
  4. Serial-ATA commented on Jan 14, 2026

    @Serial-ATA
    Owner

    Ah yep, good catch!

    lofty doesn't find any encodings for this tag because encoding_byte > 100

    UrlLinkFrames have an implied Latin-1 text encoding, while TextInformationFrames have multiple possible encodings.

    WFED should just be removed from this list:

    "WFED" | "GRP1" | "MVNM" | "MVIN" => TextInformationFrame::parse(reader, id, flags, version)?.map(Frame::Text),

    Feel free to make a PR, or I'll get to it sometime this week

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