jmcomic 2.6.11__py3-none-any.whl → 2.6.13__py3-none-any.whl
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/__init__.py +1 -1
- jmcomic/jm_client_impl.py +13 -3
- jmcomic/jm_config.py +5 -2
- {jmcomic-2.6.11.dist-info → jmcomic-2.6.13.dist-info}/METADATA +4 -1
- {jmcomic-2.6.11.dist-info → jmcomic-2.6.13.dist-info}/RECORD +9 -9
- {jmcomic-2.6.11.dist-info → jmcomic-2.6.13.dist-info}/WHEEL +1 -1
- {jmcomic-2.6.11.dist-info → jmcomic-2.6.13.dist-info}/entry_points.txt +0 -0
- {jmcomic-2.6.11.dist-info → jmcomic-2.6.13.dist-info}/licenses/LICENSE +0 -0
- {jmcomic-2.6.11.dist-info → jmcomic-2.6.13.dist-info}/top_level.txt +0 -0
jmcomic/__init__.py
CHANGED
jmcomic/jm_client_impl.py
CHANGED
|
@@ -699,7 +699,17 @@ class JmApiClient(AbstractJmClient):
|
|
|
699
699
|
|
|
700
700
|
def fetch_detail_entity(self, jmid, clazz):
|
|
701
701
|
"""
|
|
702
|
-
|
|
702
|
+
Fetches a JM entity (album or chapter) by its JM ID and returns it as an instance of `clazz`.
|
|
703
|
+
|
|
704
|
+
Parameters:
|
|
705
|
+
jmid (str | int): JM ID or value parseable to a JM ID.
|
|
706
|
+
clazz (type): Entity class to parse the response into (e.g., `JmAlbumDetail` or a chapter/detail class).
|
|
707
|
+
|
|
708
|
+
Returns:
|
|
709
|
+
object: An instance of `clazz` populated from the API response data.
|
|
710
|
+
|
|
711
|
+
Raises:
|
|
712
|
+
Exception: Raised via ExceptionTool.raise_missing if the API response lacks required data.
|
|
703
713
|
"""
|
|
704
714
|
jmid = JmcomicText.parse_to_jm_id(jmid)
|
|
705
715
|
url = self.API_ALBUM if issubclass(clazz, JmAlbumDetail) else self.API_CHAPTER
|
|
@@ -710,7 +720,7 @@ class JmApiClient(AbstractJmClient):
|
|
|
710
720
|
})
|
|
711
721
|
)
|
|
712
722
|
|
|
713
|
-
if resp.res_data.get('name') is None:
|
|
723
|
+
if not resp.encoded_data or resp.res_data.get('name') is None:
|
|
714
724
|
ExceptionTool.raise_missing(resp, jmid)
|
|
715
725
|
|
|
716
726
|
return JmApiAdaptTool.parse_entity(resp.res_data, clazz)
|
|
@@ -1195,4 +1205,4 @@ class PhotoConcurrentFetcherProxy(JmcomicClient):
|
|
|
1195
1205
|
if scramble_id != '':
|
|
1196
1206
|
photo.scramble_id = scramble_id
|
|
1197
1207
|
|
|
1198
|
-
return photo
|
|
1208
|
+
return photo
|
jmcomic/jm_config.py
CHANGED
|
@@ -21,6 +21,9 @@ class JmMagicConstants:
|
|
|
21
21
|
ORDER_BY_VIEW = 'mv'
|
|
22
22
|
ORDER_BY_PICTURE = 'mp'
|
|
23
23
|
ORDER_BY_LIKE = 'tf'
|
|
24
|
+
# 下面这两个目前只在网页上看到,app上没有
|
|
25
|
+
ORDER_BY_SCORE = 'tr'
|
|
26
|
+
ORDER_BY_COMMENT = 'md'
|
|
24
27
|
|
|
25
28
|
ORDER_MONTH_RANKING = 'mv_m'
|
|
26
29
|
ORDER_WEEK_RANKING = 'mv_w'
|
|
@@ -77,7 +80,7 @@ class JmMagicConstants:
|
|
|
77
80
|
APP_TOKEN_SECRET_2 = '18comicAPPContent'
|
|
78
81
|
APP_DATA_SECRET = '185Hcomic3PAPP7R'
|
|
79
82
|
API_DOMAIN_SERVER_SECRET = 'diosfjckwpqpdfjkvnqQjsik'
|
|
80
|
-
APP_VERSION = '2.0.
|
|
83
|
+
APP_VERSION = '2.0.16'
|
|
81
84
|
|
|
82
85
|
|
|
83
86
|
# 模块级别共用配置
|
|
@@ -150,7 +153,7 @@ class JmModuleConfig:
|
|
|
150
153
|
|
|
151
154
|
APP_HEADERS_IMAGE = {
|
|
152
155
|
'Accept': 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8',
|
|
153
|
-
'X-Requested-With': 'com.
|
|
156
|
+
'X-Requested-With': 'com.JMComic3.app',
|
|
154
157
|
'Referer': PROT + DOMAIN_API_LIST[0],
|
|
155
158
|
'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
|
|
156
159
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jmcomic
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.13
|
|
4
4
|
Summary: Python API For JMComic (禁漫天堂)
|
|
5
5
|
Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
|
|
6
6
|
Author: hect0x7
|
|
@@ -86,6 +86,9 @@ Dynamic: requires-python
|
|
|
86
86
|
[【指路】教程:导出并下载你的禁漫收藏夹数据](./assets/docs/sources/tutorial/10_export_favorites.md)
|
|
87
87
|
|
|
88
88
|
|
|
89
|
+

|
|
90
|
+
|
|
91
|
+
|
|
89
92
|
## 项目介绍
|
|
90
93
|
|
|
91
94
|
本项目的核心功能是下载本子。
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
jmcomic/__init__.py,sha256=
|
|
1
|
+
jmcomic/__init__.py,sha256=RbS0HiAba0Yek8tzEBor69mHIYVOfO9tP1QHs8dm2iY,903
|
|
2
2
|
jmcomic/api.py,sha256=ZduhXDmh4lg1dkXHs7UTAaPpYNO7kcdPCDH5JJT9KSI,4253
|
|
3
3
|
jmcomic/cl.py,sha256=PBSh0JndNFZw3B7WJPj5Y8SeFdKzHE00jIwYo9An-K0,3475
|
|
4
|
-
jmcomic/jm_client_impl.py,sha256=
|
|
4
|
+
jmcomic/jm_client_impl.py,sha256=r4_vTjgfQT256mhKutC7fWNWGTHjXOMM-g4HWaOofYk,41489
|
|
5
5
|
jmcomic/jm_client_interface.py,sha256=NMifOLLECBFkAICM3ykSBHla6Oagr36m6LF1oj8KtdU,20006
|
|
6
|
-
jmcomic/jm_config.py,sha256=
|
|
6
|
+
jmcomic/jm_config.py,sha256=jN5Y-92zQALiKsylJDkNTnG6fSe8BC6OXTrIYiiHkQo,17336
|
|
7
7
|
jmcomic/jm_downloader.py,sha256=azYkIN-1OuEivZ1TGGDaYo1FkcO5KatSb0g4GVdKSPY,11041
|
|
8
8
|
jmcomic/jm_entity.py,sha256=ZyXVy3mOl9qkxlw6hyshVS3RR-yKfO5BkJHtyBAoKQE,20053
|
|
9
9
|
jmcomic/jm_exception.py,sha256=x3KGMLlQS2zi1GX7z5G58zJN2EwLkI4mAURkxZYjEvA,5055
|
|
10
10
|
jmcomic/jm_option.py,sha256=AaalEsfLCBAqbbxBCt8vZ_b6tI19RfdCNe5HeigSPe8,22061
|
|
11
11
|
jmcomic/jm_plugin.py,sha256=9_EfTOVCk4ey1QQiKjYhFnd6j9XG-YM8rXiN21w-KrU,45374
|
|
12
12
|
jmcomic/jm_toolkit.py,sha256=OsuqpA2zhoOz244MLA2lGxG9NH0Q8IkMH970hT4W37s,32727
|
|
13
|
-
jmcomic-2.6.
|
|
14
|
-
jmcomic-2.6.
|
|
15
|
-
jmcomic-2.6.
|
|
16
|
-
jmcomic-2.6.
|
|
17
|
-
jmcomic-2.6.
|
|
18
|
-
jmcomic-2.6.
|
|
13
|
+
jmcomic-2.6.13.dist-info/licenses/LICENSE,sha256=kz4coTxZxuGxisK3W00tjK57Zh3RcMGq-EnbXrK7-xA,1064
|
|
14
|
+
jmcomic-2.6.13.dist-info/METADATA,sha256=EOTL7AmIkkwwf4TAKtBqIKT1nyrlbGFPE9fuDFiJhh8,10810
|
|
15
|
+
jmcomic-2.6.13.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
16
|
+
jmcomic-2.6.13.dist-info/entry_points.txt,sha256=tRbQltaGSBjejI0c9jYt-4SXQMd5nSDHcMvHmuTy4ow,44
|
|
17
|
+
jmcomic-2.6.13.dist-info/top_level.txt,sha256=puvVMFYJqIbd6NOTMEvOyugMTT8woBfSQyxEBan3zY4,8
|
|
18
|
+
jmcomic-2.6.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|