tagger.py: loosen mp3 regex a little bit
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 6 Feb 2012 00:52:39 +0000 (16:52 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 6 Feb 2012 00:52:39 +0000 (16:52 -0800)
Allow mp3 names to have any number of digits in their initial number, as
long as it's at least one.

Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

tagger.py

index 88d2b0e..870da42 100755 (executable)
--- a/tagger.py
+++ b/tagger.py
@@ -81,7 +81,7 @@ music_file_re = re.compile(".*\.mp3$")
 
 music_file_name_re = re.compile(".*/" +
             "(?P<dir_name>[^/]*)/" +
-            "(?P<track_number>[0123456789][0123456789]) - " +
+            "(?P<track_number>[0123456789][0123456789]*) - " +
             "(?P<track_name>[^/]*)" +
             "\.[a-zA-Z0123456789]*$")