jmcomic 2.5.18__tar.gz → 2.5.20__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.18/src/jmcomic.egg-info → jmcomic-2.5.20}/PKG-INFO +1 -1
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/__init__.py +1 -1
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_config.py +13 -6
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_downloader.py +1 -4
- {jmcomic-2.5.18 → jmcomic-2.5.20/src/jmcomic.egg-info}/PKG-INFO +1 -1
- {jmcomic-2.5.18 → jmcomic-2.5.20}/LICENSE +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/README.md +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/setup.cfg +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/setup.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/api.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/cl.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_client_impl.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_client_interface.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_entity.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_exception.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_option.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_plugin.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic/jm_toolkit.py +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic.egg-info/SOURCES.txt +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic.egg-info/dependency_links.txt +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic.egg-info/entry_points.txt +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic.egg-info/requires.txt +0 -0
- {jmcomic-2.5.18 → jmcomic-2.5.20}/src/jmcomic.egg-info/top_level.txt +0 -0
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
from common import time_stamp,
|
|
1
|
+
from common import time_stamp, field_cache, ProxyBuilder
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def shuffled(lines):
|
|
5
|
+
from random import shuffle
|
|
6
|
+
from common import str_to_list
|
|
7
|
+
ls = str_to_list(lines)
|
|
8
|
+
shuffle(ls)
|
|
9
|
+
return ls
|
|
2
10
|
|
|
3
11
|
|
|
4
12
|
def default_jm_logging(topic: str, msg: str):
|
|
@@ -68,7 +76,7 @@ class JmMagicConstants:
|
|
|
68
76
|
APP_TOKEN_SECRET = '18comicAPP'
|
|
69
77
|
APP_TOKEN_SECRET_2 = '18comicAPPContent'
|
|
70
78
|
APP_DATA_SECRET = '185Hcomic3PAPP7R'
|
|
71
|
-
APP_VERSION = '1.7.
|
|
79
|
+
APP_VERSION = '1.7.2'
|
|
72
80
|
|
|
73
81
|
|
|
74
82
|
# 模块级别共用配置
|
|
@@ -142,20 +150,19 @@ class JmModuleConfig:
|
|
|
142
150
|
APP_COOKIES = None
|
|
143
151
|
|
|
144
152
|
# 移动端图片域名
|
|
145
|
-
DOMAIN_IMAGE_LIST =
|
|
153
|
+
DOMAIN_IMAGE_LIST = shuffled('''
|
|
146
154
|
cdn-msp.jmapiproxy1.cc
|
|
147
155
|
cdn-msp.jmapiproxy2.cc
|
|
148
156
|
cdn-msp2.jmapiproxy2.cc
|
|
149
157
|
cdn-msp3.jmapiproxy2.cc
|
|
150
158
|
cdn-msp.jmapinodeudzn.net
|
|
151
159
|
cdn-msp3.jmapinodeudzn.net
|
|
152
|
-
|
|
153
160
|
''')
|
|
154
161
|
|
|
155
162
|
# 移动端API域名
|
|
156
|
-
DOMAIN_API_LIST =
|
|
157
|
-
www.jmapidestiny.xyz
|
|
163
|
+
DOMAIN_API_LIST = shuffled('''
|
|
158
164
|
www.jmeadpoolcdn.one
|
|
165
|
+
www.jmapiproxyxxx.one
|
|
159
166
|
www.jmeadpoolcdn.life
|
|
160
167
|
|
|
161
168
|
''')
|
|
@@ -110,7 +110,6 @@ class JmDownloader(DownloadCallback):
|
|
|
110
110
|
if use_cache is True and image.exists:
|
|
111
111
|
return
|
|
112
112
|
|
|
113
|
-
e = None
|
|
114
113
|
try:
|
|
115
114
|
client.download_by_image_detail(
|
|
116
115
|
image,
|
|
@@ -121,9 +120,7 @@ class JmDownloader(DownloadCallback):
|
|
|
121
120
|
jm_log('image.failed', f'图片下载失败: [{image.download_url}], 异常: {e}')
|
|
122
121
|
# 保存失败记录
|
|
123
122
|
self.download_failed_list.append((image, e))
|
|
124
|
-
|
|
125
|
-
if e is not None:
|
|
126
|
-
raise e
|
|
123
|
+
raise
|
|
127
124
|
|
|
128
125
|
self.after_image(image, img_save_path)
|
|
129
126
|
|
|
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
|