jmcomic 2.5.23__tar.gz → 2.5.25__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jmcomic-2.5.23/src/jmcomic.egg-info → jmcomic-2.5.25}/PKG-INFO +1 -1
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/__init__.py +1 -1
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_client_interface.py +1 -4
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_toolkit.py +7 -8
- {jmcomic-2.5.23 → jmcomic-2.5.25/src/jmcomic.egg-info}/PKG-INFO +1 -1
- {jmcomic-2.5.23 → jmcomic-2.5.25}/LICENSE +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/README.md +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/setup.cfg +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/setup.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/api.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/cl.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_client_impl.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_config.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_downloader.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_entity.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_exception.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_option.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic/jm_plugin.py +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic.egg-info/SOURCES.txt +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic.egg-info/dependency_links.txt +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic.egg-info/entry_points.txt +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic.egg-info/requires.txt +0 -0
- {jmcomic-2.5.23 → jmcomic-2.5.25}/src/jmcomic.egg-info/top_level.txt +0 -0
|
@@ -63,7 +63,7 @@ class JmImageResp(JmResp):
|
|
|
63
63
|
):
|
|
64
64
|
img_url = img_url or self.url
|
|
65
65
|
|
|
66
|
-
if decode_image is False:
|
|
66
|
+
if decode_image is False or scramble_id is None:
|
|
67
67
|
# 不解密图片,直接保存文件
|
|
68
68
|
JmImageTool.save_resp_img(
|
|
69
69
|
self,
|
|
@@ -245,9 +245,6 @@ class JmImageClient:
|
|
|
245
245
|
:param scramble_id: 图片所在photo的scramble_id
|
|
246
246
|
:param decode_image: 要保存的是解密后的图还是原图
|
|
247
247
|
"""
|
|
248
|
-
if scramble_id is None:
|
|
249
|
-
scramble_id = JmMagicConstants.SCRAMBLE_220980
|
|
250
|
-
|
|
251
248
|
# 请求图片
|
|
252
249
|
resp = self.get_jm_image(img_url)
|
|
253
250
|
|
|
@@ -6,7 +6,7 @@ from .jm_exception import *
|
|
|
6
6
|
class JmcomicText:
|
|
7
7
|
pattern_jm_domain = compile(r'https://([\w.-]+)')
|
|
8
8
|
pattern_jm_pa_id = [
|
|
9
|
-
(compile(r'(photos?|
|
|
9
|
+
(compile(r'(photos?|albums?)/(\d+)'), 2),
|
|
10
10
|
(compile(r'id=(\d+)'), 1),
|
|
11
11
|
]
|
|
12
12
|
pattern_html_jm_pub_domain = compile(r'[\w-]+\.\w+/?\w+')
|
|
@@ -25,31 +25,30 @@ class JmcomicText:
|
|
|
25
25
|
pattern_html_album_album_id = compile(r'<span class="number">.*?:JM(\d+)</span>')
|
|
26
26
|
pattern_html_album_scramble_id = compile(r'var scramble_id = (\d+);')
|
|
27
27
|
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+)"
|
|
29
|
-
r'第(\d+)話\n([\s\S]*?)\n *'
|
|
30
|
-
r'<[\s\S]*?>(\d+-\d+-\d+).*?')
|
|
28
|
+
pattern_html_album_episode_list = compile(r'data-album="(\d+)"\s*?>\s*?<li.*?>\s*?第(\d+)話([\s\S]*?)<[\s\S]*?>(\d+-\d+-\d+).*?')
|
|
31
29
|
pattern_html_album_page_count = compile(r'<span class="pagecount">.*?:(\d+)</span>')
|
|
32
30
|
pattern_html_album_pub_date = compile(r'>上架日期 : (.*?)</span>')
|
|
33
31
|
pattern_html_album_update_date = compile(r'>更新日期 : (.*?)</span>')
|
|
32
|
+
pattern_html_tag_a = compile(r'<a[^>]*?>\s*(\S*)\s*</a>')
|
|
34
33
|
# 作品
|
|
35
34
|
pattern_html_album_works = [
|
|
36
35
|
compile(r'<span itemprop="author" data-type="works">([\s\S]*?)</span>'),
|
|
37
|
-
|
|
36
|
+
pattern_html_tag_a,
|
|
38
37
|
]
|
|
39
38
|
# 登場人物
|
|
40
39
|
pattern_html_album_actors = [
|
|
41
40
|
compile(r'<span itemprop="author" data-type="actor">([\s\S]*?)</span>'),
|
|
42
|
-
|
|
41
|
+
pattern_html_tag_a,
|
|
43
42
|
]
|
|
44
43
|
# 标签
|
|
45
44
|
pattern_html_album_tags = [
|
|
46
45
|
compile(r'<span itemprop="genre" data-type="tags">([\s\S]*?)</span>'),
|
|
47
|
-
|
|
46
|
+
pattern_html_tag_a,
|
|
48
47
|
]
|
|
49
48
|
# 作者
|
|
50
49
|
pattern_html_album_authors = [
|
|
51
50
|
compile(r'作者: *<span itemprop="author" data-type="author">([\s\S]*?)</span>'),
|
|
52
|
-
|
|
51
|
+
pattern_html_tag_a,
|
|
53
52
|
]
|
|
54
53
|
# 點擊喜歡
|
|
55
54
|
pattern_html_album_likes = compile(r'<span id="albim_likes_\d+">(.*?)</span>')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|