From: Colin Patrick McCabe Date: Mon, 6 Feb 2012 00:52:39 +0000 (-0800) Subject: tagger.py: loosen mp3 regex a little bit X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d72e304aee9abd0352e4ddaa993eae64e9233d59;p=cmccabe-bin tagger.py: loosen mp3 regex a little bit 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 --- diff --git a/tagger.py b/tagger.py index 88d2b0e..870da42 100755 --- a/tagger.py +++ b/tagger.py @@ -81,7 +81,7 @@ music_file_re = re.compile(".*\.mp3$") music_file_name_re = re.compile(".*/" + "(?P[^/]*)/" + - "(?P[0123456789][0123456789]) - " + + "(?P[0123456789][0123456789]*) - " + "(?P[^/]*)" + "\.[a-zA-Z0123456789]*$")