[mp3togo] audiotags library 0.01
Justus Pendleton
justus at ryoohki.net
Wed May 24 21:28:27 PDT 2006
I've cobbled together a generic interface to several audio file formats.
This could be a step towards using mutagen in mp3togo, while also adding
support for aac and musepack. As should be pretty clear I didn't write
the vast majority of this code -- it was taken from quodlibet which
already had a nice interface for exactly this. I've hacked the QL source
to make this a standalone library. Thus far I've only tested reading of
tags. You'll need mutagen installed for mp3, flac, and oggvorbis
support. Other file formats require ctypes and a specific library. If
you don't have the library it should handle that gracefully. This
release depends on a recent SVN version of mutagen, which added
pure-python oggvorbis support.
The source is at:
http://www.ryoohki.net/~justus/audiotags
To use:
import audiotags
m = audiotags.AudioFile(filename)
if audiotags.supported(m):
print m['title'], m['~#length']
If this seems like a decent interface and approach the next step would
be to switch mp3togo over to using this for reading and writing tags.
More information about the mp3togo
mailing list