This is the first release of libmtag, the simple music tagging library. It is an abstraction layer around taglib that provides a simpler and more generic API.
It is coded in C, but there are bindings for Ruby and Python.
It’s quite simple (Ruby):
file = MTag::File.new("song.mp3")
print(”%s - %s\n” % [file.tag.artist, file.tag.title])
file.tag.artist = "foo"
There’s a feature that allows you to select either ID3v1 or v2 tags, but that’s only available in the C interface.
Ideas for the future:
- Support for custom tags; like “rating”, “playcount” or “tags”
- Remove either ID3v1 or ID3v2
- Copy ID3v1 to ID3v2 or the other way
- Implement the parsing instead of using taglib
Grab it while it’s hot😉