Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with tagwriter: In case of multiple genres per element a new TCON frame #224

Open
calliostro opened this issue Dec 28, 2019 · 3 comments

Comments

@calliostro
Copy link

Hi James Heinrich

When saving multiple genres in ID3v2 format, a new TCON frame is generated for each element, which seems not to be allowed. MP3 Diags says "Multiple frame instances found, only the first one is used. (Frame: TCON)" (Example screenshot https://i.imgur.com/Smp7ou0.png).

When parsing genres you already consider the NULL byte separator. Maybe you could join several genres in this way when saving and write them in a single TCON frame?

Many greetings
Denis

@JamesHeinrich
Copy link
Owner

Yes, multiple genres are allowed in ID3v2, but they should all be written in a single TCON frame (although it's quite probable that getID3 does not currently handle it correctly).

Can you provide some simple example code of writing multiple genres that results in multiple TCON frames, to help me in testing and fixing the problem, please?

@calliostro
Copy link
Author

Thanks for the quick answer.

If you expand the genre list in demos/demo.simple.write.php:45:

'genre' => array('Rock', 'Pop'),

Then your tool demos/demo.browse.php shows a TCON array with 2 elements:

https://i.imgur.com/pKm9Xlv.png

MP3 Diags will display the warning.

Greetings
Denis

@calliostro
Copy link
Author

PS. When I write the IDv2 tags with the Mp3tag tool, the demos/demo.browse.php shows this as follows:

https://i.imgur.com/9YQfXsr.png

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

No branches or pull requests

3 participants