X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tagger.py;h=59c280bc7b08327c34c9120ac6c8ce7841190c48;hb=be18b25512f1032b934a9674a17d98c2b772edf5;hp=be22447719f0953762987ff3e7601d4f6478db8f;hpb=fd8a5026b904792be8a383e10819121be0d08a76;p=cmccabe-bin diff --git a/tagger.py b/tagger.py index be22447..59c280b 100755 --- a/tagger.py +++ b/tagger.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # # Changes mp3 ID3 tags to match the file names. @@ -236,7 +236,7 @@ class MusicFile(object): def from_filename(filename): if (audiobook): match = audiobook_file_name_re.match(filename) - track_name = "" + track_name = match.group('track_number') else: match = music_file_name_re.match(filename) track_name = match.group('track_name')