#!/usr/bin/env python
import sys
import os
import re
assert len(sys.argv) > 3
artist = sys.argv[1]
album = sys.argv[2]
for s in sys.argv[2:]:
m = re.match(r'(\d\d) - ([^\.]*).mp3', s)
if not m:
print 'could not find match for', s
continue
track = m.group(1)
title = m.group(2)
cmd = 'id3v2 -a "%s" -A "%s" -T %s -t "%s" "%s"' % (artist, album, track, title, s)
print cmd
os.system(cmd)
Saturday, September 15, 2007
fix mp3 tags
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment