Programa
http://code.activestate.com/recipes/...rom-mp3-files/
Código:
Para funcionar precisa tener instalado el módulo Mutagen que se baja de aquí:## {{{ http://code.activestate.com/recipes/577139/ (r3) # -*- coding: utf-8 -*- import os import sys import codecs from mutagen.mp3 import MP3 TEXT_ENCODING = 'utf8' # get workdir from first arg or use current dir if (len(sys.argv) > 1): fpath = sys.argv[1] else: fpath = os.path.abspath(os.path.dirname(sys.argv[0])) for fn in os.listdir(fpath): fname = os.path.join(fpath, fn) if fname.lower().endswith('.mp3'): print fn, mp3 = MP3(fname) try: mp3.delete() mp3.save() print 'ok!' except: print 'no ID3 tag' print 'Done' ## end of http://code.activestate.com/recipes/577139/ }}}
Mutagen
http://code.google.com/p/mutagen/wiki/Tutorial