From f43c29977e06f495b9def9472e72d0624d41ee9f Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Thu, 8 Nov 2012 06:24:10 +0000 Subject: [PATCH] More logic for checking upper-case "V" for volume git-svn-id: http://comictagger.googlecode.com/svn/trunk@15 6c5673fe-1810-88d6-992b-cd32ca31540c --- filenameparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filenameparser.py b/filenameparser.py index 4ab7006..39ca491 100644 --- a/filenameparser.py +++ b/filenameparser.py @@ -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")