Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/jmcomic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 被依赖方 <--- 使用方
# config <--- entity <--- toolkit <--- client <--- option <--- downloader

__version__ = '2.5.32'
__version__ = '2.5.33'

from .api import *
from .jm_plugin import *
Expand Down
10 changes: 5 additions & 5 deletions src/jmcomic/jm_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class JmMagicConstants:
APP_TOKEN_SECRET = '18comicAPP'
APP_TOKEN_SECRET_2 = '18comicAPPContent'
APP_DATA_SECRET = '185Hcomic3PAPP7R'
APP_VERSION = '1.7.8'
APP_VERSION = '1.7.9'


# 模块级别共用配置
Expand Down Expand Up @@ -127,10 +127,10 @@ class JmModuleConfig:

# 移动端API域名
DOMAIN_API_LIST = shuffled('''
www.jmapiproxyxxx.vip
www.cdnblackmyth.vip
www.cdnblackmyth.xyz
www.cdnxxx-proxy.co
www.cdnmhwscc.vip
www.cdnblackmyth.club
www.cdnmhws.cc
www.cdnuc.vip
''')

APP_HEADERS_TEMPLATE = {
Expand Down
2 changes: 1 addition & 1 deletion src/jmcomic/jm_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def get_downloaded_photo(self, downloader, album, photo):
return (
downloader.download_success_dict[album]
if album is not None # after_album
else downloader.download_success_dict[photo.from_album] # after_photo
else downloader.download_success_dict[photo.from_album] # after_photo
)

def zip_photo(self, photo, image_list: list, zip_path: str, path_to_delete):
Expand Down
2 changes: 1 addition & 1 deletion src/jmcomic/jm_toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def find_right_pair(left_pair, i):
@classmethod
def to_zh_cn(cls, s):
import zhconv
return zhconv.convert(s, 'zh_cn')
return zhconv.convert(s, 'zh-cn')

@classmethod
def try_mkdir(cls, save_dir: str):
Expand Down
5 changes: 4 additions & 1 deletion tests/test_jmcomic/test_jm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def test_detail_property_list(self):
]

for pair in ans:
self.assertListEqual(pair[0][0:9], pair[1][0:9])
left = pair[0][0:9]
right = pair[1][0:9]
for i, ans in enumerate(right):
self.assertEqual(JmcomicText.to_zh_cn(left[i]), JmcomicText.to_zh_cn(ans))

def test_photo_sort(self):
client = self.option.build_jm_client()
Expand Down
Loading