Fixed same problem 2checkTvEps had - regexs didn't match until the end of the string (no trailing $)

This commit is contained in:
dbr
2008-07-11 02:58:20 +01:00
parent 87628e9ebf
commit 0ab75073fc

View File

@@ -41,7 +41,7 @@ def getError(invalid,errorno):
# #
# The Film [2004] # The Film [2004]
r_with_year = [ r_with_year = [
re.compile("([-\w\d ]+) \[(\d{4})\]"), re.compile("([-\w\d()\[\] ]+) \[(\d{4})\]$"),
] ]
################################### ###################################
@@ -49,7 +49,7 @@ r_with_year = [
# #
# The Film # The Film
r_missing_year = [ r_missing_year = [
re.compile("([-\w\d ]+)"), re.compile("([-\w\d ]+)$"),
] ]
# Valid path names # Valid path names