mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-26 11:32:16 +08:00
fix bugs
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import re
|
||||
name = "Tate no Yuusha no Nariagari S02 "
|
||||
name = "Tate no Yuusha no Nariagari S02"
|
||||
|
||||
season_rules = r'S(\d{0,3}|\d{1,3}\.\d{1,2})'
|
||||
a = re.match(season_rules, name)
|
||||
print(a)
|
||||
season_rules = r'(.*)(S.\d)'
|
||||
a = re.match(season_rules, name, re.I)
|
||||
if a is not None:
|
||||
print(a.group(1))
|
||||
print(a.group(2))
|
||||
else:
|
||||
print(name)
|
||||
Reference in New Issue
Block a user