id3 0.2.5

A library for reading and writing ID3 metadata
Documentation

rust-id3

Build Status

A library for reading and writing ID3 metadata.

Documentation

Usage

Add the dependency to your Cargo.toml:

[dependencies]
id3 = "0.2.2"
extern crate id3;

fn main() {
  let tag = id3::Tag::read_from_path("testdata/id3v24.id3").unwrap();

  // print the artist the hard way
  println!("{}", tag.get("TPE1").unwrap().content().text().unwrap());

  // or print it the easy way
  println!("{}", tag.artist().unwrap());
}

Supported ID3 Versions

  • ID3v1 reading
  • ID3v2.2 reading/writing
  • ID3v2.3 reading/writing
  • ID3v2.4 reading/writing

Unsupported Features

  • Grouping identity
  • Encryption

Contributors