TianyiShi2001 / audiotags

Unified IO for different types of audio metadata
https://tianyishi2001.github.io/audiotags
MIT License
41 stars 29 forks source link

Support for custom tags? #41

Closed abique closed 6 months ago

abique commented 7 months ago

Hi,

Would it be possible to add support for custom tags? By custom tag, I mean a key and value pair.

Cheers, Alex

abique commented 7 months ago

Actually, I didn't realize there was a get_first() for flac. Is it applicable to all file types?

Serial-ATA commented 6 months ago

It is only applicable for FlacTag, since the keys are just simple strings. Handling ID3v2 frame IDs and MP4 ilst atom identifiers would likely be out of scope, as they both come in different forms.

For more complex metadata handling, I'd suggest using another crate.

pinkforest commented 6 months ago

What would be the reason for custom tags ? e.g. use-cases why this would be a good idea

abique commented 6 months ago

What would be the reason for custom tags ? e.g. use-cases why this would be a good idea

To store cue points, loops, beat info, custom attributes ...

Serial-ATA commented 6 months ago

If you need more complex metadata handling, you should use lofty. audiotags is more intended to provide high-level view of a few basic items in the tag.