From 048e8001a525ba1c04afda2aa2005feb74709eb8 Mon Sep 17 00:00:00 2001 From: Benjamin Brisson Date: Tue, 11 Jun 2024 12:08:09 +0200 Subject: [PATCH] Update Absolute Series Scanner.py Removed dates using month and year only Made separator mandatory: hyphen (-), dot (.), Slash (/), Underscore(_) https://github.com/ZeroQI/Absolute-Series-Scanner/issues/495 --- Scanners/Series/Absolute Series Scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scanners/Series/Absolute Series Scanner.py b/Scanners/Series/Absolute Series Scanner.py index 44f61cf..caa48c0 100755 --- a/Scanners/Series/Absolute Series Scanner.py +++ b/Scanners/Series/Absolute Series Scanner.py @@ -115,8 +115,8 @@ def cic(string): return re.compile(string, re.IGNORECASE | re.UNICODE) #RE Com cic(ur'(^|(?P.*)[ _\.\-]+)(?P\d{1,2})ACV(?P\d{1,2})([ _\.\-]+(?P.*)|$)') #20th Television production format (Futurama) ] MOVIE_RX = cic(ur'(?P<show>.*) \((?P<year>\d{4})\)$') -DATE_RX = [ cic(ur'(?P<year>(19[0-9][0-9]|20[0-3][0-9]))[\-\.\/]?(?P<month>(0[1-9]|1[0-2]))\2?(?P<day>(0[1-9]|[12][0-9]|3[01]))'), #2024-05-21, 2024/25/31, 2024.05.31, 2024 05 31 - cic(ur'(?P<day>(0[1-9]|[12][0-9]|3[01]))[ \-\.\/]?(?P<month>(0[1-9]|1[0-2]))\2?(?P<year>(19[0-9][0-9]|20[0-3][0-9]))?')] #21-05-2024, 21/05/2024, 21.05.2024, 21 05 2024 +DATE_RX = [ cic(ur'(?P<year>(19[0-9][0-9]|20[0-3][0-9]))[\-\.\/\_](?P<month>(0[1-9]|1[0-2]))\2(?P<day>(0[1-9]|[12][0-9]|3[01]))'), #2024-05-21, 2024/25/31, 2024.05.31 + cic(ur'(?P<day>(0[1-9]|[12][0-9]|3[01]))[ \-\.\/\_](?P<month>(0[1-9]|1[0-2]))\2(?P<year>(19[0-9][0-9]|20[0-3][0-9]))')] #21-05-2024, 21/05/2024, 21.05.2024 ANIDB_RX = [ ###### AniDB Specials episode offset regex array cic(ur'(^|(?P<show>.*?)[ _\.\-]+)(S|SP|SPECIAL|OAD)[ _\.]?(?P<ep>\d{1,2})(-(?P<ep2>\d{1,3}))?(V\d)?[ _\.]?(?P<title>.*)$'), # 0 # 001-099 Specials cic(ur'(^|(?P<show>.*?)[ _\.\-]+)(OP|NCOP|OPENING)[ _\.]?(?P<ep>\d{1,2}[a-z]?)?[ _\.]?(V\d)?([ _\.\-]+(?P<title>.*))?$'), # 1 # 100-149 Openings