Skip to content

Fix updating genres on id3v4 - #90

Open
liviopersonne wants to merge 2 commits into
ClementBeal:mainfrom
liviopersonne:patch-1
Open

Fix updating genres on id3v4#90
liviopersonne wants to merge 2 commits into
ClementBeal:mainfrom
liviopersonne:patch-1

Conversation

@liviopersonne

@liviopersonne liviopersonne commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

Files changed

  • /lib/src/writers/id3v4_writer.dart

Changes

  • The 'TCON' frame was originally used for contentType and was changed to represent genres or contentType in a new version of id3. The new TCON update was correctly created but the old TCON update wasn't deleted. That's what I did.
  • When writing genres to the 'TCON' frame, they were joined in a string with / as a separator. However, this separator wasn't recognised in musicbee (music management app), but ; was correctly recognised and already detected in the parser, so I changed the separator to that. I believe the best option would be | which is also detected in Elisa (music player app) and is the default separator value that is written when modifying the tag manually in musicbee. I haven't been able to correctly write | though because it is automatically escaped during the writing procedure, so I believe other functions would need to be modified, which I don't plan on doing.

Fixes

fixes #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting metadata duplicates genres

1 participant