Skip to content

Commit c50ca79

Browse files
authored
v2.5.19: 更新禁漫最新可用线路(#279)
1 parent ccfc4c9 commit c50ca79

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
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.18'
5+
__version__ = '2.5.19'
66

77
from .api import *
88
from .jm_plugin import *

src/jmcomic/jm_config.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
from common import time_stamp, str_to_list, field_cache, ProxyBuilder
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
210

311

412
def default_jm_logging(topic: str, msg: str):
@@ -68,7 +76,7 @@ class JmMagicConstants:
6876
APP_TOKEN_SECRET = '18comicAPP'
6977
APP_TOKEN_SECRET_2 = '18comicAPPContent'
7078
APP_DATA_SECRET = '185Hcomic3PAPP7R'
71-
APP_VERSION = '1.7.1'
79+
APP_VERSION = '1.7.2'
7280

7381

7482
# 模块级别共用配置
@@ -142,20 +150,19 @@ class JmModuleConfig:
142150
APP_COOKIES = None
143151

144152
# 移动端图片域名
145-
DOMAIN_IMAGE_LIST = str_to_list('''
153+
DOMAIN_IMAGE_LIST = shuffled('''
146154
cdn-msp.jmapiproxy1.cc
147155
cdn-msp.jmapiproxy2.cc
148156
cdn-msp2.jmapiproxy2.cc
149157
cdn-msp3.jmapiproxy2.cc
150158
cdn-msp.jmapinodeudzn.net
151159
cdn-msp3.jmapinodeudzn.net
152-
153160
''')
154161

155162
# 移动端API域名
156-
DOMAIN_API_LIST = str_to_list('''
157-
www.jmapidestiny.xyz
163+
DOMAIN_API_LIST = shuffled('''
158164
www.jmeadpoolcdn.one
165+
www.jmapiproxyxxx.one
159166
www.jmeadpoolcdn.life
160167
161168
''')

0 commit comments

Comments
 (0)