space between season and episode

This commit is contained in:
simon 2021-10-17 18:47:57 +07:00
parent 97f5c45e8c
commit b4cf73e3f7
1 changed files with 2 additions and 2 deletions

View File

@ -53,9 +53,9 @@ class Static:
season = str(get_s_nr.findall(season_id)[0])
episode = str(get_s_nr.findall(season_id)[1])
id_style = 'se'
elif re.compile(r'[sS][0-9]{1,3}.?[eE][0-9]{1,3}').findall(filename):
elif re.compile(r'[sS][0-9]{1,3}[. ]?[eE][0-9]{1,3}').findall(filename):
# S01*E01
season_id_pattern = re.compile(r'[sS]\d{1,3}.?[eE]\d{1,3}')
season_id_pattern = re.compile(r'[sS]\d{1,3}[. ]?[eE]\d{1,3}')
season_id = season_id_pattern.findall(filename)[0]
get_s_nr = re.compile(r'[0-9]{1,3}')
season = str(get_s_nr.findall(season_id)[0])