jmcomic 2.5.28__tar.gz → 2.5.29__tar.gz
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-2.5.28/src/jmcomic.egg-info → jmcomic-2.5.29}/PKG-INFO +12 -2
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/__init__.py +1 -1
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_client_impl.py +3 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_config.py +1 -1
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_entity.py +1 -1
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_option.py +1 -1
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_toolkit.py +2 -1
- {jmcomic-2.5.28 → jmcomic-2.5.29/src/jmcomic.egg-info}/PKG-INFO +12 -2
- {jmcomic-2.5.28 → jmcomic-2.5.29}/LICENSE +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/README.md +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/setup.cfg +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/setup.py +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/api.py +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/cl.py +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_client_interface.py +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_downloader.py +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_exception.py +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic/jm_plugin.py +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic.egg-info/SOURCES.txt +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic.egg-info/dependency_links.txt +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic.egg-info/entry_points.txt +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic.egg-info/requires.txt +0 -0
- {jmcomic-2.5.28 → jmcomic-2.5.29}/src/jmcomic.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: jmcomic
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.29
|
|
4
4
|
Summary: Python API For JMComic (禁漫天堂)
|
|
5
5
|
Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
|
|
6
6
|
Author: hect0x7
|
|
@@ -25,6 +25,16 @@ Requires-Dist: commonX
|
|
|
25
25
|
Requires-Dist: PyYAML
|
|
26
26
|
Requires-Dist: Pillow
|
|
27
27
|
Requires-Dist: pycryptodome
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: keywords
|
|
35
|
+
Dynamic: requires-dist
|
|
36
|
+
Dynamic: requires-python
|
|
37
|
+
Dynamic: summary
|
|
28
38
|
|
|
29
39
|
# Python API For JMComic (禁漫天堂)
|
|
30
40
|
|
|
@@ -709,6 +709,9 @@ class JmApiClient(AbstractJmClient):
|
|
|
709
709
|
})
|
|
710
710
|
)
|
|
711
711
|
|
|
712
|
+
if resp.res_data.get('name') is None:
|
|
713
|
+
ExceptionTool.raise_missing(resp, jmid)
|
|
714
|
+
|
|
712
715
|
return JmApiAdaptTool.parse_entity(resp.res_data, clazz)
|
|
713
716
|
|
|
714
717
|
def fetch_scramble_id(self, photo_id):
|
|
@@ -443,7 +443,7 @@ class JmAlbumDetail(DetailEntity, Downloadable):
|
|
|
443
443
|
super().__init__()
|
|
444
444
|
self.album_id: str = str(album_id)
|
|
445
445
|
self.scramble_id: str = str(scramble_id)
|
|
446
|
-
self.name: str = name
|
|
446
|
+
self.name: str = str(name).strip()
|
|
447
447
|
self.page_count: int = int(page_count) # 总页数
|
|
448
448
|
self.pub_date: str = pub_date # 发布日期
|
|
449
449
|
self.update_date: str = update_date # 更新日期
|
|
@@ -159,7 +159,7 @@ class DirRule:
|
|
|
159
159
|
return None
|
|
160
160
|
|
|
161
161
|
def solve_func(detail):
|
|
162
|
-
return fix_windir_name(str(DetailEntity.get_dirname(detail, rule[1:])))
|
|
162
|
+
return fix_windir_name(str(DetailEntity.get_dirname(detail, rule[1:]))).strip()
|
|
163
163
|
|
|
164
164
|
return rule[0], solve_func, rule
|
|
165
165
|
|
|
@@ -329,7 +329,8 @@ class JmcomicText:
|
|
|
329
329
|
limit = JmModuleConfig.VAR_FILE_NAME_LENGTH_LIMIT
|
|
330
330
|
jm_log('error', f'目录名过长,无法创建目录,强制缩短到{limit}个字符并重试')
|
|
331
331
|
save_dir = save_dir[0:limit]
|
|
332
|
-
|
|
332
|
+
return cls.try_mkdir(save_dir)
|
|
333
|
+
raise e
|
|
333
334
|
return save_dir
|
|
334
335
|
|
|
335
336
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: jmcomic
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.29
|
|
4
4
|
Summary: Python API For JMComic (禁漫天堂)
|
|
5
5
|
Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
|
|
6
6
|
Author: hect0x7
|
|
@@ -25,6 +25,16 @@ Requires-Dist: commonX
|
|
|
25
25
|
Requires-Dist: PyYAML
|
|
26
26
|
Requires-Dist: Pillow
|
|
27
27
|
Requires-Dist: pycryptodome
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: keywords
|
|
35
|
+
Dynamic: requires-dist
|
|
36
|
+
Dynamic: requires-python
|
|
37
|
+
Dynamic: summary
|
|
28
38
|
|
|
29
39
|
# Python API For JMComic (禁漫天堂)
|
|
30
40
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|