X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/578decd98560dc6a1ddb55da9b432bf776585a64..05ccb9e6302c84c623781de8345dfd3d607ff9c8:/fa-flacd diff --git a/fa-flacd b/fa-flacd index 2873a41..59e9c26 100755 --- a/fa-flacd +++ b/fa-flacd @@ -142,7 +142,7 @@ def flac(dir, artist, album, discnum, tracknum, track_tags, disc_artist, tags): if tracknum == None: outfile = album if discnum != None: - outfile = ''.join([outfile, ' (disc ', discnum, ')']) + outfile = ''.join([discnum, ' ', outfile]) run_flac('wav', 'cue', '/'.join(['..', artist, outfile]), tags) files = ['%s/%s.flac' % (artist, outfile)] @@ -255,7 +255,11 @@ def flacloop(maxjobs): else: # multi-file # Don't need cue file. - c(os.unlink, dir[0] + '/cue') + try: + c(os.unlink, dir[0] + '/cue') + except EnvironmentError, error: + if error.errno != ENOENT: + raise error # Go over @tags, store all [n] tags in a list keyed by # n in %tracks_to_tags, store all ARTIST (not