Skip to content

Commit 20d281a

Browse files
authored
v2.5.33: 更新1.7.9禁漫APP的最新域名 (#399) (#398)
1 parent cc03d14 commit 20d281a

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
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.32'
5+
__version__ = '2.5.33'
66

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

src/jmcomic/jm_config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class JmMagicConstants:
7676
APP_TOKEN_SECRET = '18comicAPP'
7777
APP_TOKEN_SECRET_2 = '18comicAPPContent'
7878
APP_DATA_SECRET = '185Hcomic3PAPP7R'
79-
APP_VERSION = '1.7.8'
79+
APP_VERSION = '1.7.9'
8080

8181

8282
# 模块级别共用配置
@@ -127,10 +127,10 @@ class JmModuleConfig:
127127

128128
# 移动端API域名
129129
DOMAIN_API_LIST = shuffled('''
130-
www.jmapiproxyxxx.vip
131-
www.cdnblackmyth.vip
132-
www.cdnblackmyth.xyz
133-
www.cdnxxx-proxy.co
130+
www.cdnmhwscc.vip
131+
www.cdnblackmyth.club
132+
www.cdnmhws.cc
133+
www.cdnuc.vip
134134
''')
135135

136136
APP_HEADERS_TEMPLATE = {

src/jmcomic/jm_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def get_downloaded_photo(self, downloader, album, photo):
319319
return (
320320
downloader.download_success_dict[album]
321321
if album is not None # after_album
322-
else downloader.download_success_dict[photo.from_album] # after_photo
322+
else downloader.download_success_dict[photo.from_album] # after_photo
323323
)
324324

325325
def zip_photo(self, photo, image_list: list, zip_path: str, path_to_delete):

src/jmcomic/jm_toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def find_right_pair(left_pair, i):
317317
@classmethod
318318
def to_zh_cn(cls, s):
319319
import zhconv
320-
return zhconv.convert(s, 'zh_cn')
320+
return zhconv.convert(s, 'zh-cn')
321321

322322
@classmethod
323323
def try_mkdir(cls, save_dir: str):

tests/test_jmcomic/test_jm_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def test_detail_property_list(self):
5555
]
5656

5757
for pair in ans:
58-
self.assertListEqual(pair[0][0:9], pair[1][0:9])
58+
left = pair[0][0:9]
59+
right = pair[1][0:9]
60+
for i, ans in enumerate(right):
61+
self.assertEqual(JmcomicText.to_zh_cn(left[i]), JmcomicText.to_zh_cn(ans))
5962

6063
def test_photo_sort(self):
6164
client = self.option.build_jm_client()

0 commit comments

Comments
 (0)