Skip to content

Fails to extract ID3v2 text tag if it contains a solidus ('/') #82

@ebassi

Description

@ebassi

Reproducer

Create an MP3 file with an ID3v2 tag, set the title tag to Foo / title, and save it as solidus_in_tag.mp3.

   let file = Probe::open("solidus_in_tag.mp3")
       .unwrap()
       .read()
       .unwrap();

   assert_eq!(file.file_type(), FileType::MPEG);

   let id3v2_tag = &file.tags()[0];
   assert_eq!(id3v2_tag.title(), Some("Foo / title"));

Summary

If an ID3v2 text tag contains a solidus (/) then whatever follows the character gets dropped; e.g. a title tag set to Foo / title is returned as Foo .

Expected behavior

The reproducer should pass; the title tag should return Foo / title.

Assets

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions