From 0ab75073fcb99a4c2182db960c4aed2d3d31fe47 Mon Sep 17 00:00:00 2001 From: dbr Date: Fri, 11 Jul 2008 02:58:20 +0100 Subject: [PATCH] Fixed same problem 2checkTvEps had - regexs didn't match until the end of the string (no trailing $) --- checkFilms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkFilms.py b/checkFilms.py index 87d8c88..ec702b4 100755 --- a/checkFilms.py +++ b/checkFilms.py @@ -41,7 +41,7 @@ def getError(invalid,errorno): # # The Film [2004] r_with_year = [ - re.compile("([-\w\d ]+) \[(\d{4})\]"), + re.compile("([-\w\d()\[\] ]+) \[(\d{4})\]$"), ] ################################### @@ -49,7 +49,7 @@ r_with_year = [ # # The Film r_missing_year = [ - re.compile("([-\w\d ]+)"), + re.compile("([-\w\d ]+)$"), ] # Valid path names