Skip to content

Commit

Permalink
跟进正则表达式
Browse files Browse the repository at this point in the history
  • Loading branch information
hect0x7 committed Jan 4, 2024
1 parent c179b1c commit 5959cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jmcomic/jm_toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class JmcomicText:
# 點擊喜歡
pattern_html_album_likes = compile(r'<span id="albim_likes_\d+">(.*?)</span>')
# 觀看
pattern_html_album_views = compile(r'<span>(.*?)</span> (次觀看|观看次数)')
pattern_html_album_views = compile(r'<span>(.*?)</span>\n<span>(次觀看|观看次数)</span>')
# 評論(div)
pattern_html_album_comment_count = compile(r'<div class="badge"[^>]*?id="total_video_comments">(\d+)</div>'), 0

Expand Down

0 comments on commit 5959cb6

Please sign in to comment.