Skip to content

Commit

Permalink
Update Absolute Series Scanner.py
Browse files Browse the repository at this point in the history
Removed dates using month and year only
Made separator mandatory: hyphen (-), dot (.), Slash (/), Underscore(_)

#495
  • Loading branch information
ZeroQI authored Jun 11, 2024
1 parent fc727f9 commit 048e800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scanners/Series/Absolute Series Scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def cic(string): return re.compile(string, re.IGNORECASE | re.UNICODE) #RE Com
cic(ur'(^|(?P<show>.*)[ _\.\-]+)(?P<season>\d{1,2})ACV(?P<ep>\d{1,2})([ _\.\-]+(?P<title>.*)|$)') #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
Expand Down

0 comments on commit 048e800

Please sign in to comment.