From 37e1d67249567cd13903e7991c99ef184cbbd922 Mon Sep 17 00:00:00 2001 From: hect0x7 <93357912+hect0x7@users.noreply.github.com> Date: Tue, 24 Dec 2024 21:41:06 +0800 Subject: [PATCH] =?UTF-8?q?v2.5.26:=20=E8=A7=A3=E6=9E=90oname=E6=97=B6?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=8B=AC=E5=8F=B7=E6=9C=AA=E9=97=AD=E5=90=88?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmcomic/__init__.py | 2 +- src/jmcomic/jm_toolkit.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/jmcomic/__init__.py b/src/jmcomic/__init__.py index a46a31d8..c8af81d2 100644 --- a/src/jmcomic/__init__.py +++ b/src/jmcomic/__init__.py @@ -2,7 +2,7 @@ # 被依赖方 <--- 使用方 # config <--- entity <--- toolkit <--- client <--- option <--- downloader -__version__ = '2.5.25' +__version__ = '2.5.26' from .api import * from .jm_plugin import * diff --git a/src/jmcomic/jm_toolkit.py b/src/jmcomic/jm_toolkit.py index 0b2e531f..6da4bfea 100644 --- a/src/jmcomic/jm_toolkit.py +++ b/src/jmcomic/jm_toolkit.py @@ -298,7 +298,11 @@ def find_right_pair(left_pair, i): add() # 定位右括号 j = find_right_pair(c, i) - ExceptionTool.require_true(j != -1, f'未闭合的 {c}{bracket_map[c]}: {title[i:]}') + if j == -1: + # 括号未闭合 + char_list.append(c) + i += 1 + continue # 整个括号的单词结束 add(title[i:j]) # 移动指针