From b307e828a7ef43ec49302bca57f985e1cf8e877b Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Thu, 4 May 2023 18:44:12 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20renamer=20=E4=B8=8D=E8=83=BD=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D1000=E9=9B=86=E4=BB=A5=E4=B8=8A=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module/manager/renamer.py | 1 + src/module/parser/analyser/torrent_parser.py | 12 ++++++------ src/test/test_torrent_parser.py | 9 ++++++++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/module/manager/renamer.py b/src/module/manager/renamer.py index 0c8db6c8..04f68936 100644 --- a/src/module/manager/renamer.py +++ b/src/module/manager/renamer.py @@ -199,3 +199,4 @@ class Renamer: ) else: logger.warning(f"{info.name} has no media file") + diff --git a/src/module/parser/analyser/torrent_parser.py b/src/module/parser/analyser/torrent_parser.py index a54dc7e7..0b96b7dd 100644 --- a/src/module/parser/analyser/torrent_parser.py +++ b/src/module/parser/analyser/torrent_parser.py @@ -19,7 +19,7 @@ RULES = [ r"(.*)[\[\ E](\d{1,4}|\d{1,4}\.\d{1,2})(?:v\d{1,2})?(?: )?(?:END)?[\]\ ](.*)", r"(.*)\[(?:第)?(\d*\.*\d*)[话集話](?:END)?\](.*)", r"(.*)第(\d*\.*\d*)[话話集](?:END)?(.*)", - r"(.*)(?