Skip to content

Conversation

@uklotzde
Copy link
Contributor

@uklotzde uklotzde commented Jul 3, 2024

The behavior of the take_string() and other string accessor methods has changed in lofty v0.20.0. They now return values from all TagItems, regardless of their description. This is unexpected for ID3v2 tags where the description is meaningful. Regular TagItems usually have an empty description.

The new methods are needed to extract only regular TagItems with an empty description from an ID3v2 tag. The example demonstrates how to achieve this for ItemKey::Comment.

Copy link
Owner

@Serial-ATA Serial-ATA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, thanks!

@Serial-ATA Serial-ATA added this to the 0.21.0 milestone Jul 3, 2024
@uklotzde
Copy link
Contributor Author

uklotzde commented Jul 3, 2024

I have added some comments. Preserving the order of all items while splitting them is an important feature.

@Serial-ATA Serial-ATA merged commit 4fc6b96 into Serial-ATA:main Jul 4, 2024
@uklotzde uklotzde deleted the tag-take-filter branch July 4, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants