More logic for checking upper-case "V" for volume

git-svn-id: http://comictagger.googlecode.com/svn/trunk@15 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-11-08 06:24:10 +00:00
parent c28d24481f
commit f43c29977e

View File

@ -100,9 +100,10 @@ class FileNameParser:
series = series.rstrip("#")
# search for volume number
match = re.search('(?<=v)(\d+)\s*$', series)
match = re.search('(?<= [vV])(\d+)\s*$', series)
if match:
volume = match.group()
series = series.replace(" V"+ volume, " v"+ volume)
series = series.split("v"+volume)[0]
volume = volume.lstrip("0")