mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-28 15:14:56 +08:00
2.5.22
- 修复 normal 方法不生效的问题
This commit is contained in:
@@ -37,7 +37,7 @@ class DownloadParser:
|
||||
|
||||
def rename_normal(self, info: DownloadInfo):
|
||||
for rule in self.rules:
|
||||
match_obj = re.match(rule, info.file_name, re.I)
|
||||
match_obj = re.match(rule, info.name, re.I)
|
||||
if match_obj is not None:
|
||||
title = re.sub(r"([Ss]|Season )\d{1,3}", "", match_obj.group(1)).strip()
|
||||
new_name = f"{title} S{info.season}E{match_obj.group(2)}{match_obj.group(3)}"
|
||||
|
||||
Reference in New Issue
Block a user