From a57ba9026d8d260246dd2281314bc37bd8fe285b Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 17 Dec 2012 18:21:15 +0100 Subject: [PATCH] Year match only 1900-2099 --- couchpotato/core/plugins/scanner/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/scanner/main.py b/couchpotato/core/plugins/scanner/main.py index 78feca8..860f943 100644 --- a/couchpotato/core/plugins/scanner/main.py +++ b/couchpotato/core/plugins/scanner/main.py @@ -775,7 +775,7 @@ class Scanner(Plugin): return None def findYear(self, text): - matches = re.search('(?P[12]{1}[0-9]{3})', text) + matches = re.search('(?P19[0-9]{2}|20[0-9]{2})', text) if matches: return matches.group('year')