I've posted a new Python module: id3reader. It reads ID3 metadata tags from MP3 files. I've tried all the other Python modules out there that claim to do this, and each failed on one of the few MP3 files I tried it on. This one reads ID3v1 and ID3v2 tags, and tries to unify them into a simple reader module. If you try it and find it doesn't work for a file of yours, please drop me a line so I can keep it up-to-date.

tagged: , » 5 reactions

Comments

[gravatar]
James Kew 9:22 AM on 4 Jan 2004

*cough* link's broken: .py, not .px.

Code looks nice, though.

[gravatar]
Ned Batchelder 4:14 PM on 4 Jan 2004

Actually, it was supposed to be .html, but it's fixed now in any case. Thanks for the pointer.

[gravatar]
Keith 4:55 PM on 4 Jan 2004

I'll give it a run through my collection this week, as soon as I get a chance. Looks good though...much cleaner than some of the other Python implementations I've seen.

P.S. What license is this code under? I might like to embed it in an ipod application I'm working on.

[gravatar]
Koz 3:13 PM on 6 Jan 2004

Any plans on adding write support at some stage? Would you be interested in patches?

[gravatar]
Ned Batchelder 7:33 AM on 8 Jan 2004

Write support is a possibility, but not a high priority for me. Patches are always welcome.

Add a comment:

name
email
Ignore this:
not displayed and no spam.
Leave this empty:
www
not searched.
 
Name and either email or www are required.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.