jmcomic 2.6.12__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-2.6.12.dist-info → jmcomic-2.6.13.dist-info}/METADATA +1 -1
- {jmcomic-2.6.12.dist-info → jmcomic-2.6.13.dist-info}/RECORD +8 -8
- {jmcomic-2.6.12.dist-info → jmcomic-2.6.13.dist-info}/WHEEL +1 -1
- {jmcomic-2.6.12.dist-info → jmcomic-2.6.13.dist-info}/entry_points.txt +0 -0
- {jmcomic-2.6.12.dist-info → jmcomic-2.6.13.dist-info}/licenses/LICENSE +0 -0
- {jmcomic-2.6.12.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
|
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
jmcomic/jm_config.py,sha256=jN5Y-92zQALiKsylJDkNTnG6fSe8BC6OXTrIYiiHkQo,17336
|
|
7
7
|
jmcomic/jm_downloader.py,sha256=azYkIN-1OuEivZ1TGGDaYo1FkcO5KatSb0g4GVdKSPY,11041
|
|
@@ -10,9 +10,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
|