A library for reading and writing ID3 metadata.
Add the dependency to your Cargo.toml
:
toml
[dependencies]
id3 = "*"
```rust use id3::Tag;
let mut tag = Tag::readfrompath("music.mp3").unwrap();
// print the artist the hard way println!("{}", tag.get("TALB").unwrap().contents.text());
// or print it the easy way println!("{}", tag.artist().unwrap());
tag.save().unwrap(); ```