#! /usr/bin/python
-import sys
+import os, sys
+from errno import EEXIST
from subprocess import Popen, PIPE
from flac_archive.tags import Tags
% (len(tags), len(args)))
return 4
artist = tags.get_path_safe('ARTIST')
- album = tags.get_path_safe('ALBUM'),
+ album = tags.get_path_safe('ALBUM')
try:
os.mkdir(artist)
except OSError, e:
track = i + 1
fn = '%s/%s/%s.flac' % (artist, album, tags.make_filename(track))
if fn != old_fn:
+ print tags.track(track)
#os.rename(old_fn, fn)
- pass
def main(args):
if len(args) < 3: