What Is The Best Library For Reading ID3 Tags?
What library is presently the most thorough and capable ID3 tag reading library available? Preferably something I can compile as a shared library and wrap with Python's ctypes libr
Solution 1:
I've had a good time using mutagen (tutorial: http://code.google.com/p/mutagen/wiki/Tutorial) - it's quite simple to get the info. Note that you should use the Easy ID3
option.
>>> from glob import glob
>>> from mutagen.easyid3 import EasyID3
>>> for filename in glob('/home/jon/Downloads/*.mp3'):
mp3info = EasyID3(filename)
print mp3info.items()
[('artist', [u"James O'Brien's Mystery Hour"]), ('title', [u"James O'Brien's Mystery Hour - 7 Dec 12"])]
Post a Comment for "What Is The Best Library For Reading ID3 Tags?"