From: Colin P. Mccabe Date: Sat, 22 Sep 2018 01:00:00 +0000 (-0700) Subject: tagger.py: set track title for audiobooks X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3c71df2373938b7b868e04630bb29158f535b85;p=cmccabe-bin tagger.py: set track title for audiobooks Set track title for audiobooks. Some music players sort on this field. --- diff --git a/tagger.py b/tagger.py index be22447..ea59b59 100755 --- a/tagger.py +++ b/tagger.py @@ -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')