Skip to content

Commit d71109a

Browse files
committed
v2.5.30: 更新网页端提取章节的正则表达式
1 parent fc5d2b9 commit d71109a

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.29'
5+
__version__ = '2.5.30'
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
@@ -25,7 +25,7 @@ class JmcomicText:
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+);')
2727
pattern_html_album_name = compile(r'<h1 class="book-name" id="book-name">([\s\S]*?)</h1>')
28-
pattern_html_album_episode_list = compile(r'data-album="(\d+)"\s*?>\s*?<li.*?>\s*?第(\d+)話([\s\S]*?)<[\s\S]*?>(\d+-\d+-\d+).*?')
28+
pattern_html_album_episode_list = compile(r'data-album="(\d+)"[^>]*>\s*?<li.*?>\s*?第(\d+)話([\s\S]*?)<[\s\S]*?>(\d+-\d+-\d+).*?')
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>')

0 commit comments

Comments
 (0)