Skip to content

Commit bfa4759

Browse files
committed
v2.5.38: 更新网页正则表达式 (#434)
1 parent 544c6aa commit bfa4759

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jmcomic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# 被依赖方 <--- 使用方
33
# config <--- entity <--- toolkit <--- client <--- option <--- downloader
44

5-
__version__ = '2.5.37'
5+
__version__ = '2.5.38'
66

77
from .api import *
88
from .jm_plugin import *

src/jmcomic/jm_toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class JmcomicText:
2424

2525
pattern_html_album_album_id = compile(r'<span class="number">.*?:JM(\d+)</span>')
2626
pattern_html_album_scramble_id = compile(r'var scramble_id = (\d+);')
27-
pattern_html_album_name = compile(r'<h1 class="book-name" id="book-name">([\s\S]*?)</h1>')
27+
pattern_html_album_name = compile(r'<h2 class="book-name" id="book-name"[^>]*?>([\s\S]*?)</h2>')
2828
pattern_html_album_episode_list = compile(r'data-album="(\d+)"[^>]*>\s*?<li.*?>\s*?第(\d+)[话話]([\s\S]*?)<[\s\S]*?>')
2929
pattern_html_album_page_count = compile(r'<span class="pagecount">.*?:(\d+)</span>')
3030
pattern_html_album_pub_date = compile(r'>上架日期 : (.*?)</span>')

0 commit comments

Comments
 (0)