jmcomic 2.5.33__py3-none-any.whl → 2.5.34__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_entity.py +3 -3
- jmcomic/jm_plugin.py +1 -1
- jmcomic/jm_toolkit.py +2 -2
- {jmcomic-2.5.33.dist-info → jmcomic-2.5.34.dist-info}/METADATA +1 -1
- {jmcomic-2.5.33.dist-info → jmcomic-2.5.34.dist-info}/RECORD +10 -10
- {jmcomic-2.5.33.dist-info → jmcomic-2.5.34.dist-info}/WHEEL +0 -0
- {jmcomic-2.5.33.dist-info → jmcomic-2.5.34.dist-info}/entry_points.txt +0 -0
- {jmcomic-2.5.33.dist-info → jmcomic-2.5.34.dist-info}/licenses/LICENSE +0 -0
- {jmcomic-2.5.33.dist-info → jmcomic-2.5.34.dist-info}/top_level.txt +0 -0
jmcomic/__init__.py
CHANGED
jmcomic/jm_entity.py
CHANGED
|
@@ -457,10 +457,10 @@ class JmAlbumDetail(DetailEntity, Downloadable):
|
|
|
457
457
|
self.authors: List[str] = authors # 作者
|
|
458
458
|
|
|
459
459
|
# 有的 album 没有章节,则自成一章。
|
|
460
|
-
episode_list: List[Tuple[str, str, str
|
|
460
|
+
episode_list: List[Tuple[str, str, str]]
|
|
461
461
|
if len(episode_list) == 0:
|
|
462
462
|
# photo_id, photo_index, photo_title, photo_pub_date
|
|
463
|
-
episode_list = [(album_id, "1", name
|
|
463
|
+
episode_list = [(album_id, "1", name)]
|
|
464
464
|
else:
|
|
465
465
|
episode_list = self.distinct_episode(episode_list)
|
|
466
466
|
|
|
@@ -505,7 +505,7 @@ class JmAlbumDetail(DetailEntity, Downloadable):
|
|
|
505
505
|
raise IndexError(f'photo index out of range for album-{self.album_id}: {index} >= {length}')
|
|
506
506
|
|
|
507
507
|
# ('212214', '81', '94 突然打來', '2020-08-29')
|
|
508
|
-
pid, pindex, pname
|
|
508
|
+
pid, pindex, pname = self.episode_list[index]
|
|
509
509
|
|
|
510
510
|
photo = JmModuleConfig.photo_class()(
|
|
511
511
|
photo_id=pid,
|
jmcomic/jm_plugin.py
CHANGED
|
@@ -319,7 +319,7 @@ class ZipPlugin(JmOptionPlugin):
|
|
|
319
319
|
return (
|
|
320
320
|
downloader.download_success_dict[album]
|
|
321
321
|
if album is not None # after_album
|
|
322
|
-
else downloader.download_success_dict[photo.from_album]
|
|
322
|
+
else downloader.download_success_dict[photo.from_album] # after_photo
|
|
323
323
|
)
|
|
324
324
|
|
|
325
325
|
def zip_photo(self, photo, image_list: list, zip_path: str, path_to_delete):
|
jmcomic/jm_toolkit.py
CHANGED
|
@@ -25,7 +25,7 @@ class JmcomicText:
|
|
|
25
25
|
pattern_html_album_album_id = compile(r'<span class="number">.*?:JM(\d+)</span>')
|
|
26
26
|
pattern_html_album_scramble_id = compile(r'var scramble_id = (\d+);')
|
|
27
27
|
pattern_html_album_name = compile(r'<h1 class="book-name" id="book-name">([\s\S]*?)</h1>')
|
|
28
|
-
pattern_html_album_episode_list = compile(r'data-album="(\d+)"[^>]*>\s*?<li.*?>\s*?第(\d+)
|
|
28
|
+
pattern_html_album_episode_list = compile(r'data-album="(\d+)"[^>]*>\s*?<li.*?>\s*?第(\d+)[话話]([\s\S]*?)<[\s\S]*?>')
|
|
29
29
|
pattern_html_album_page_count = compile(r'<span class="pagecount">.*?:(\d+)</span>')
|
|
30
30
|
pattern_html_album_pub_date = compile(r'>上架日期 : (.*?)</span>')
|
|
31
31
|
pattern_html_album_update_date = compile(r'>更新日期 : (.*?)</span>')
|
|
@@ -693,7 +693,7 @@ class JmApiAdaptTool:
|
|
|
693
693
|
chapter = AdvancedDict(chapter)
|
|
694
694
|
# photo_id, photo_index, photo_title, photo_pub_date
|
|
695
695
|
episode_list.append(
|
|
696
|
-
(chapter.id, chapter.sort, chapter.name
|
|
696
|
+
(chapter.id, chapter.sort, chapter.name)
|
|
697
697
|
)
|
|
698
698
|
fields['episode_list'] = episode_list
|
|
699
699
|
for it in 'scramble_id', 'page_count', 'pub_date', 'update_date':
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
jmcomic/__init__.py,sha256=
|
|
1
|
+
jmcomic/__init__.py,sha256=afRFtpIkAXkt9GtOS-LhzVxRlikGkxkrXWGPfXEoGGQ,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
6
|
jmcomic/jm_config.py,sha256=rOeKMqZ3HwWk3I-vA0YTCIimBcfdZpvXj7Itg0OKfCo,16767
|
|
7
7
|
jmcomic/jm_downloader.py,sha256=vfAjHggbs4vvtrv9zM8NjeGWXk2-9tlqQaC8iC4FKpw,10351
|
|
8
|
-
jmcomic/jm_entity.py,sha256=
|
|
8
|
+
jmcomic/jm_entity.py,sha256=7CMOhAkhGN8SFPZiWFUg_YAktVxHlnSOMZLit7oVqRM,19077
|
|
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=
|
|
12
|
-
jmcomic/jm_toolkit.py,sha256=
|
|
13
|
-
jmcomic-2.5.
|
|
14
|
-
jmcomic-2.5.
|
|
15
|
-
jmcomic-2.5.
|
|
16
|
-
jmcomic-2.5.
|
|
17
|
-
jmcomic-2.5.
|
|
18
|
-
jmcomic-2.5.
|
|
11
|
+
jmcomic/jm_plugin.py,sha256=e2B_x2adghxn7f8eKAJivDWf8oLY9962Utt1-J70zBw,39902
|
|
12
|
+
jmcomic/jm_toolkit.py,sha256=_qAJKbcV9jaFHRGvGU4Na2ts5h7QPGJS4uRQ05KpQ88,29166
|
|
13
|
+
jmcomic-2.5.34.dist-info/licenses/LICENSE,sha256=kz4coTxZxuGxisK3W00tjK57Zh3RcMGq-EnbXrK7-xA,1064
|
|
14
|
+
jmcomic-2.5.34.dist-info/METADATA,sha256=23F2knHh_wQVsuFzNEjbelpyd3gTbC3RN3bzSGtOgio,8161
|
|
15
|
+
jmcomic-2.5.34.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
16
|
+
jmcomic-2.5.34.dist-info/entry_points.txt,sha256=tRbQltaGSBjejI0c9jYt-4SXQMd5nSDHcMvHmuTy4ow,44
|
|
17
|
+
jmcomic-2.5.34.dist-info/top_level.txt,sha256=puvVMFYJqIbd6NOTMEvOyugMTT8woBfSQyxEBan3zY4,8
|
|
18
|
+
jmcomic-2.5.34.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|