fix(meta): 修复正则表达式以正确匹配 Sxx 季信息格式

This commit is contained in:
景大侠
2026-03-02 11:35:41 +08:00
parent 0044dd104e
commit 74d4592238
2 changed files with 33 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ class MetaVideo(MetaBase):
self.type = MediaType.TV
return
# 全名为Season xx 及 Sxx 直接返回
season_full_res = re.search(r"^Season\s+(\d{1,3})$|^S(\d{1,3})$", title)
season_full_res = re.search(r"^(?:Season\s+|S)(\d{1,3})$", title)
if season_full_res:
self.type = MediaType.TV
season = season_full_res.group(1)