Skip to content

FileType: Distinguish read-only tag support - #566

Merged
Serial-ATA merged 1 commit into
mainfrom
tag-support
Nov 8, 2025
Merged

Serial-ATA merged 1 commit into
mainfrom
tag-support

Conversation

@Serial-ATA

@Serial-ATA Serial-ATA commented Nov 8, 2025 •

Copy link
Copy Markdown
Owner

TaggedFile::save_to() would try to write every tag read, which would error if it contained a read-only tag, such as an ID3v2 tag in a FLAC file. Most users of TaggedFile aren't checking all tags in their files, nor should they need to.

This just makes TaggedFile::save_to() skip any tags that don't have write support for the target FileType.

@Serial-ATA Serial-ATA added this to the 0.23.0 milestone Nov 8, 2025
@Serial-ATA
Serial-ATA force-pushed the tag-support branch 2 times, most recently from ebe7b9c to 74e57f6 Compare November 8, 2025 21:50
`TaggedFile::save_to()` would try to write *every* tag read, which would error if it contained a read-only tag, such as an ID3v2 tag in a FLAC file. Most users of `TaggedFile` aren't checking *all* tags in their files, nor should they need to.

This just makes `TaggedFile::save_to()` skip any tags that don't have write support for the target `FileType`.

Signed-off-by: Serial <[email protected]>
@Serial-ATA
Serial-ATA merged commit 522bb07 into main Nov 8, 2025
@Serial-ATA
Serial-ATA deleted the tag-support branch November 8, 2025 21:56
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.

1 participant