pyd3
version: 0.2date: 2002-08-16 16:13:24
This is a project I started back when I first started learning python, and I haven't done much with it since. There are several py tools that do ID3 manipulation (all built on Ben Gertzfield's ID3.py). In trying to organize the MP3 server and all that sort of nonsense I'm thinking of maybe finishing this up ;).
So far it just uses ID3.py to get info, but I plan on adding a few more details (bitrate, time, filesize) to what ID3 gives and then pipe it to MySQL. Nothing fancy or difficult, just need to find time to get python-mysql installed and write the damn thing. This is what I did way back in the day.
import glob, getopt, string, re, sys
from ID3 import *
#get volume name/starting point from args else currentdir need os, file
# this needs to walk tree/files instead. fix.
for file in glob.glob('*/*.[M,m][P,p]3'):
id3info = ID3(file)
print id3info
Yes, glob is ugly. Deal with it.



