Skip to content

Commit 905f72c

Browse files
committed
v2.5.39: 更新网页端正则表达式
1 parent bfa4759 commit 905f72c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.38'
5+
__version__ = '2.5.39'
66

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

src/jmcomic/jm_toolkit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ 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'<h2 class="book-name" id="book-name"[^>]*?>([\s\S]*?)</h2>')
28-
pattern_html_album_episode_list = compile(r'data-album="(\d+)"[^>]*>\s*?<li.*?>\s*?第(\d+)[话話]([\s\S]*?)<[\s\S]*?>')
27+
pattern_html_album_name = compile(r'id="book-name"[^>]*?>([\s\S]*?)<')
28+
pattern_html_album_episode_list = compile(r'data-album="(\d+)"[^>]*>[\s\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>')
3131
pattern_html_album_update_date = compile(r'>更新日期 : (.*?)</span>')
@@ -47,7 +47,7 @@ class JmcomicText:
4747
]
4848
# 作者
4949
pattern_html_album_authors = [
50-
compile(r'作者: *<span itemprop="author" data-type="author">([\s\S]*?)</span>'),
50+
compile(r'<span itemprop="author" data-type="author">([\s\S]*?)</span>'),
5151
pattern_html_tag_a,
5252
]
5353
# 點擊喜歡

0 commit comments

Comments
 (0)