X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/18d637995eccbb024ead66d351b8654870865337..103ef1e59f02e8154e96d7e944fb0319dda09c31:/rewrite-tags diff --git a/rewrite-tags b/rewrite-tags index a4650cf..84eb1f8 100755 --- a/rewrite-tags +++ b/rewrite-tags @@ -13,7 +13,7 @@ class SubprocessError(Exception): msg = 'exited due to signal %d' else: msg = 'exit status %d' - Exception.__init__(self, msg % (status,)) + Exception.__init__(self, msg % (abs(status),)) self.status = status self.stderr = stderr @@ -34,6 +34,8 @@ def do_read(filenames): all_tags = {} # Build the collated result in this Tags object. coll_tags = Tags() + # XXX The Tags interface is horrible. It's gotta be almost 10 years since + # I wrote it, so not surprising... for fn in filenames: tags = get_tags(fn) track_tags = tags.get('TRACKNUMBER')