jmcomic 2.5.3__tar.gz → 2.5.5__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.3/src/jmcomic.egg-info → jmcomic-2.5.5}/PKG-INFO +1 -1
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/__init__.py +1 -1
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_config.py +7 -13
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_toolkit.py +5 -9
- {jmcomic-2.5.3 → jmcomic-2.5.5/src/jmcomic.egg-info}/PKG-INFO +1 -1
- {jmcomic-2.5.3 → jmcomic-2.5.5}/LICENSE +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/README.md +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/setup.cfg +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/setup.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/api.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/cl.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_client_impl.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_client_interface.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_downloader.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_entity.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_exception.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_option.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic/jm_plugin.py +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic.egg-info/SOURCES.txt +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic.egg-info/dependency_links.txt +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic.egg-info/entry_points.txt +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic.egg-info/requires.txt +0 -0
- {jmcomic-2.5.3 → jmcomic-2.5.5}/src/jmcomic.egg-info/top_level.txt +0 -0
|
@@ -52,7 +52,7 @@ class JmMagicConstants:
|
|
|
52
52
|
APP_TOKEN_SECRET = '18comicAPP'
|
|
53
53
|
APP_TOKEN_SECRET_2 = '18comicAPPContent'
|
|
54
54
|
APP_DATA_SECRET = '185Hcomic3PAPP7R'
|
|
55
|
-
APP_VERSION = '1.6.
|
|
55
|
+
APP_VERSION = '1.6.6'
|
|
56
56
|
APP_HEADERS_TEMPLATE = {
|
|
57
57
|
'Accept-Encoding': 'gzip',
|
|
58
58
|
'user-agent': 'Mozilla/5.0 (Linux; Android 9; V1938CT Build/PQ3A.190705.09211555; wv) AppleWebKit/537.36 (KHTML, '
|
|
@@ -106,23 +106,17 @@ class JmModuleConfig:
|
|
|
106
106
|
|
|
107
107
|
# 移动端图片域名
|
|
108
108
|
DOMAIN_IMAGE_LIST = str_to_list('''
|
|
109
|
-
cdn-msp.
|
|
110
|
-
cdn-msp2.
|
|
111
|
-
cdn-msp.jmapiproxy1.cc
|
|
112
|
-
cdn-msp.jmapiproxy2.cc
|
|
113
|
-
cdn-msp.jmapiproxy3.cc
|
|
114
|
-
cdn-msp.jmapiproxy4.cc
|
|
109
|
+
cdn-msp.jmapinodeudzn.net
|
|
110
|
+
cdn-msp2.jmapinodeudzn.net
|
|
115
111
|
|
|
116
112
|
''')
|
|
117
113
|
|
|
118
114
|
# 移动端API域名
|
|
119
115
|
DOMAIN_API_LIST = str_to_list('''
|
|
116
|
+
www.jmapinodeudzn.xyz
|
|
117
|
+
www.jmapinode.vip
|
|
120
118
|
www.jmapinode.biz
|
|
121
|
-
www.
|
|
122
|
-
www.jmapinode2.top
|
|
123
|
-
www.jmapinode3.top
|
|
124
|
-
www.jmapinode.top
|
|
125
|
-
|
|
119
|
+
www.jmapinode.xyz
|
|
126
120
|
''')
|
|
127
121
|
|
|
128
122
|
# 网页端域名配置
|
|
@@ -162,7 +156,7 @@ class JmModuleConfig:
|
|
|
162
156
|
# log时解码url
|
|
163
157
|
flag_decode_url_when_logging = True
|
|
164
158
|
# 当内置的版本号落后时,使用最新的禁漫app版本号
|
|
165
|
-
flag_use_version_newer_if_behind =
|
|
159
|
+
flag_use_version_newer_if_behind = True
|
|
166
160
|
|
|
167
161
|
# 关联dir_rule的自定义字段与对应的处理函数
|
|
168
162
|
# 例如:
|
|
@@ -359,13 +359,7 @@ class JmPageTool:
|
|
|
359
359
|
|
|
360
360
|
# 用来提取搜索页面的的album的信息
|
|
361
361
|
pattern_html_search_album_info_list = compile(
|
|
362
|
-
r'<a href="/album/(\d+)
|
|
363
|
-
r'title="(.*?)"[\s\S]*?'
|
|
364
|
-
r'(<div class="label-category" style="">'
|
|
365
|
-
r'\n(.*)\n</div>\n<div class="label-sub" style=" ">'
|
|
366
|
-
r'(.*?)\n<[\s\S]*?)?'
|
|
367
|
-
r'<div class="title-truncate tags .*>\n'
|
|
368
|
-
r'(<a[\s\S]*?) </div>'
|
|
362
|
+
r'<a href="/album/(\d+)/[\s\S]*?title="(.*?)"([\s\S]*?)<div class="title-truncate tags .*>([\s\S]*?)</div>'
|
|
369
363
|
)
|
|
370
364
|
|
|
371
365
|
# 用来提取分类页面的的album的信息
|
|
@@ -383,7 +377,7 @@ class JmPageTool:
|
|
|
383
377
|
# 查找错误,例如 [错误,關鍵字過短,請至少輸入兩個字以上。]
|
|
384
378
|
pattern_html_search_error = compile(r'<fieldset>\n<legend>(.*?)</legend>\n<div class=.*?>\n(.*?)\n</div>\n</fieldset>')
|
|
385
379
|
|
|
386
|
-
pattern_html_search_total = compile(r'
|
|
380
|
+
pattern_html_search_total = compile(r'class="text-white">(\d+)</span> A漫.'), 0
|
|
387
381
|
|
|
388
382
|
# 收藏页面的本子结果
|
|
389
383
|
pattern_html_favorite_content = compile(
|
|
@@ -424,7 +418,9 @@ class JmPageTool:
|
|
|
424
418
|
|
|
425
419
|
album_info_list = cls.pattern_html_search_album_info_list.findall(html)
|
|
426
420
|
|
|
427
|
-
for (album_id, title,
|
|
421
|
+
for (album_id, title, _label_category_text, tag_text) in album_info_list:
|
|
422
|
+
# 从label_category_text中可以解析出label-category和label-sub
|
|
423
|
+
# 这里不作解析,因为没什么用...
|
|
428
424
|
tags = cls.pattern_html_search_tags.findall(tag_text)
|
|
429
425
|
content.append((
|
|
430
426
|
album_id, {
|
|
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
|