jmcomic 2.5.31__py3-none-any.whl → 2.5.32__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_config.py +1 -1
- jmcomic/jm_plugin.py +10 -2
- {jmcomic-2.5.31.dist-info → jmcomic-2.5.32.dist-info}/METADATA +1 -1
- {jmcomic-2.5.31.dist-info → jmcomic-2.5.32.dist-info}/RECORD +9 -9
- {jmcomic-2.5.31.dist-info → jmcomic-2.5.32.dist-info}/WHEEL +1 -1
- {jmcomic-2.5.31.dist-info → jmcomic-2.5.32.dist-info}/LICENSE +0 -0
- {jmcomic-2.5.31.dist-info → jmcomic-2.5.32.dist-info}/entry_points.txt +0 -0
- {jmcomic-2.5.31.dist-info → jmcomic-2.5.32.dist-info}/top_level.txt +0 -0
jmcomic/__init__.py
CHANGED
jmcomic/jm_config.py
CHANGED
jmcomic/jm_plugin.py
CHANGED
|
@@ -278,8 +278,9 @@ class ZipPlugin(JmOptionPlugin):
|
|
|
278
278
|
|
|
279
279
|
# noinspection PyAttributeOutsideInit
|
|
280
280
|
def invoke(self,
|
|
281
|
-
album: JmAlbumDetail,
|
|
282
281
|
downloader,
|
|
282
|
+
album: JmAlbumDetail = None,
|
|
283
|
+
photo: JmPhotoDetail = None,
|
|
283
284
|
delete_original_file=False,
|
|
284
285
|
level='photo',
|
|
285
286
|
filename_rule='Ptitle',
|
|
@@ -298,7 +299,7 @@ class ZipPlugin(JmOptionPlugin):
|
|
|
298
299
|
mkdir_if_not_exists(zip_dir)
|
|
299
300
|
|
|
300
301
|
path_to_delete = []
|
|
301
|
-
photo_dict = downloader
|
|
302
|
+
photo_dict = self.get_downloaded_photo(downloader, album, photo)
|
|
302
303
|
|
|
303
304
|
if level == 'album':
|
|
304
305
|
zip_path = self.get_zip_path(album, None, filename_rule, suffix, zip_dir)
|
|
@@ -314,6 +315,13 @@ class ZipPlugin(JmOptionPlugin):
|
|
|
314
315
|
|
|
315
316
|
self.after_zip(path_to_delete)
|
|
316
317
|
|
|
318
|
+
def get_downloaded_photo(self, downloader, album, photo):
|
|
319
|
+
return (
|
|
320
|
+
downloader.download_success_dict[album]
|
|
321
|
+
if album is not None # after_album
|
|
322
|
+
else downloader.download_success_dict[photo.from_album] # after_photo
|
|
323
|
+
)
|
|
324
|
+
|
|
317
325
|
def zip_photo(self, photo, image_list: list, zip_path: str, path_to_delete):
|
|
318
326
|
"""
|
|
319
327
|
压缩photo文件夹
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
jmcomic/__init__.py,sha256=
|
|
1
|
+
jmcomic/__init__.py,sha256=z57Bl0QasY2F51bWREykDFYoB1HU1zCLap3AXrM-0jc,903
|
|
2
2
|
jmcomic/api.py,sha256=40mzFEVhR0h_Ta-ub8vMfJ9yx89yvL09XMv9zK0QUvA,3865
|
|
3
3
|
jmcomic/cl.py,sha256=PBSh0JndNFZw3B7WJPj5Y8SeFdKzHE00jIwYo9An-K0,3475
|
|
4
4
|
jmcomic/jm_client_impl.py,sha256=KguizzmrN2etAFvHzZaxbq7c8RtFhvqJzhQIAgPj7Dw,39622
|
|
5
5
|
jmcomic/jm_client_interface.py,sha256=LqJqa-4G7-F98_U9R9QTxFND_9t30B-BIQZa_o0p-KY,19005
|
|
6
|
-
jmcomic/jm_config.py,sha256=
|
|
6
|
+
jmcomic/jm_config.py,sha256=MqlgTCaFEJfKuhL85eX8Dp6YsXX38BmEmp4rIh4775Y,16782
|
|
7
7
|
jmcomic/jm_downloader.py,sha256=vfAjHggbs4vvtrv9zM8NjeGWXk2-9tlqQaC8iC4FKpw,10351
|
|
8
8
|
jmcomic/jm_entity.py,sha256=kqLtl30o_MN2pwGoahmbqm24pDojIt-45Ey_4cIHfa8,19103
|
|
9
9
|
jmcomic/jm_exception.py,sha256=B9APE1jw23JBzCT12eV_imCZny3mNrSXju1p2IquaHA,4801
|
|
10
10
|
jmcomic/jm_option.py,sha256=2tINFsDcncCJbd6FRtCMAidhro6faB8TBLoaSxP3uQ8,21926
|
|
11
|
-
jmcomic/jm_plugin.py,sha256=
|
|
11
|
+
jmcomic/jm_plugin.py,sha256=e2B_x2adghxn7f8eKAJivDWf8oLY9962Utt1-J70zBw,39902
|
|
12
12
|
jmcomic/jm_toolkit.py,sha256=2XnNwdROgrgDaSx7Xz77B0VE80w294LjnjI8TtiAcL8,29183
|
|
13
|
-
jmcomic-2.5.
|
|
14
|
-
jmcomic-2.5.
|
|
15
|
-
jmcomic-2.5.
|
|
16
|
-
jmcomic-2.5.
|
|
17
|
-
jmcomic-2.5.
|
|
18
|
-
jmcomic-2.5.
|
|
13
|
+
jmcomic-2.5.32.dist-info/LICENSE,sha256=kz4coTxZxuGxisK3W00tjK57Zh3RcMGq-EnbXrK7-xA,1064
|
|
14
|
+
jmcomic-2.5.32.dist-info/METADATA,sha256=9wCuTyh5I9n8Y14AaTyw2HXet-6Rs12nIXuDCiTUwN8,8046
|
|
15
|
+
jmcomic-2.5.32.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
|
16
|
+
jmcomic-2.5.32.dist-info/entry_points.txt,sha256=tRbQltaGSBjejI0c9jYt-4SXQMd5nSDHcMvHmuTy4ow,44
|
|
17
|
+
jmcomic-2.5.32.dist-info/top_level.txt,sha256=puvVMFYJqIbd6NOTMEvOyugMTT8woBfSQyxEBan3zY4,8
|
|
18
|
+
jmcomic-2.5.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|