- 修复 normal 方法不生效的问题
This commit is contained in:
EstrellaXD
2022-07-30 11:45:07 +08:00
parent 094674aafd
commit 55399dbe7d

View File

@@ -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)}"