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

Add Tag::take_filter() #414

Merged
merged 2 commits into from
Jul 4, 2024
Merged

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
4 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants