Browse Source

Year match only 1900-2099

pull/1143/merge
Ruud 13 years ago
parent
commit
a57ba9026d
  1. 2
      couchpotato/core/plugins/scanner/main.py

2
couchpotato/core/plugins/scanner/main.py

@ -775,7 +775,7 @@ class Scanner(Plugin):
return None return None
def findYear(self, text): def findYear(self, text):
matches = re.search('(?P<year>[12]{1}[0-9]{3})', text) matches = re.search('(?P<year>19[0-9]{2}|20[0-9]{2})', text)
if matches: if matches:
return matches.group('year') return matches.group('year')

Loading…
Cancel
Save