Skip to content

Commit 85be7fd

Browse files
committed
polish code
1 parent d510513 commit 85be7fd

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jmcomic 123
142142

143143
- 不配置也能使用,十分方便
144144
- 配置可以从配置文件生成,支持多种文件格式
145-
- 配置点有:`请求域名` `客户端实现` `是否使用磁盘缓存` `同时下载的章节/图片数量` `图片格式转换` `下载路径规则` `请求元信息(headers,cookies,proxies)` `中文繁/简转换`
145+
- 配置点有:`请求域名` `客户端实现` `是否使用磁盘缓存` `同时下载的章节/图片数量` `图片格式转换` `下载路径规则` `请求元信息(headers,cookies,proxies)` `中文繁/简转换`
146146
147147
- **可扩展性强**
148148

src/jmcomic/jm_option.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .jm_client_impl import *
2-
from .jm_toolkit import JmcomicText
32

43

54
class CacheRegistry:

src/jmcomic/jm_toolkit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,7 @@ class JmPageTool:
472472
pattern_html_search_tags = compile(r'<a[^>]*?>(.*?)</a>')
473473

474474
# 查找错误,例如 [错误,關鍵字過短,請至少輸入兩個字以上。]
475-
pattern_html_search_error = compile(
476-
r'<fieldset>\n<legend>(.*?)</legend>\n<div class=.*?>\n(.*?)\n</div>\n</fieldset>')
475+
pattern_html_search_error = compile(r'<fieldset>\n<legend>(.*?)</legend>\n<div class=.*?>\n(.*?)\n</div>\n</fieldset>')
477476

478477
pattern_html_search_total = compile(r'class="text-white">(\d+)</span> A漫.'), 0
479478

0 commit comments

Comments
 (0)