projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
739f032
)
tagger.py: loosen mp3 regex a little bit
author
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Mon, 6 Feb 2012 00:52:39 +0000 (16:52 -0800)
committer
Colin 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
patch
|
blob
|
history
diff --git
a/tagger.py
b/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]*$")