Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions utils/episode_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ def get_season_and_ep(file_path, ignores, force_rename=0):
]
# 内容
patterns = [
# 1到4位数字
r'(\d{1,4}(\.5)?)',

# 特殊文字处理
r'第(\d{1,4}(\.5)?)集',
r'第(\d{1,4}(\.5)?)话',
Expand All @@ -283,6 +282,8 @@ def get_season_and_ep(file_path, ignores, force_rename=0):
r'(\d{1,4}(\.5)?)[Vv]?\d?',
# 兼容END命名
r'(\d{1,4}(\.5)?)\s?(?:_)?(?i:END)?',
# 1到4位数字
r'(\d{1,4}(\.5)?)',
]
# 括号和内容组合起来
pats = []
Expand Down