jmcomic 2.5.32__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_config.py +5 -5
- jmcomic/jm_entity.py +3 -3
- jmcomic/jm_toolkit.py +3 -3
- {jmcomic-2.5.32.dist-info → jmcomic-2.5.34.dist-info}/METADATA +5 -3
- jmcomic-2.5.34.dist-info/RECORD +18 -0
- {jmcomic-2.5.32.dist-info → jmcomic-2.5.34.dist-info}/WHEEL +1 -1
- jmcomic-2.5.32.dist-info/RECORD +0 -18
- {jmcomic-2.5.32.dist-info → jmcomic-2.5.34.dist-info}/entry_points.txt +0 -0
- {jmcomic-2.5.32.dist-info → jmcomic-2.5.34.dist-info/licenses}/LICENSE +0 -0
- {jmcomic-2.5.32.dist-info → jmcomic-2.5.34.dist-info}/top_level.txt +0 -0
jmcomic/__init__.py
CHANGED
jmcomic/jm_config.py
CHANGED
|
@@ -76,7 +76,7 @@ class JmMagicConstants:
|
|
|
76
76
|
APP_TOKEN_SECRET = '18comicAPP'
|
|
77
77
|
APP_TOKEN_SECRET_2 = '18comicAPPContent'
|
|
78
78
|
APP_DATA_SECRET = '185Hcomic3PAPP7R'
|
|
79
|
-
APP_VERSION = '1.7.
|
|
79
|
+
APP_VERSION = '1.7.9'
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
# 模块级别共用配置
|
|
@@ -127,10 +127,10 @@ class JmModuleConfig:
|
|
|
127
127
|
|
|
128
128
|
# 移动端API域名
|
|
129
129
|
DOMAIN_API_LIST = shuffled('''
|
|
130
|
-
www.
|
|
131
|
-
www.cdnblackmyth.
|
|
132
|
-
www.
|
|
133
|
-
www.
|
|
130
|
+
www.cdnmhwscc.vip
|
|
131
|
+
www.cdnblackmyth.club
|
|
132
|
+
www.cdnmhws.cc
|
|
133
|
+
www.cdnuc.vip
|
|
134
134
|
''')
|
|
135
135
|
|
|
136
136
|
APP_HEADERS_TEMPLATE = {
|
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_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>')
|
|
@@ -317,7 +317,7 @@ class JmcomicText:
|
|
|
317
317
|
@classmethod
|
|
318
318
|
def to_zh_cn(cls, s):
|
|
319
319
|
import zhconv
|
|
320
|
-
return zhconv.convert(s, '
|
|
320
|
+
return zhconv.convert(s, 'zh-cn')
|
|
321
321
|
|
|
322
322
|
@classmethod
|
|
323
323
|
def try_mkdir(cls, save_dir: str):
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: jmcomic
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.34
|
|
4
4
|
Summary: Python API For JMComic (禁漫天堂)
|
|
5
5
|
Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
|
|
6
6
|
Author: hect0x7
|
|
@@ -33,6 +33,7 @@ Dynamic: description
|
|
|
33
33
|
Dynamic: description-content-type
|
|
34
34
|
Dynamic: home-page
|
|
35
35
|
Dynamic: keywords
|
|
36
|
+
Dynamic: license-file
|
|
36
37
|
Dynamic: requires-dist
|
|
37
38
|
Dynamic: requires-python
|
|
38
39
|
Dynamic: summary
|
|
@@ -150,8 +151,9 @@ jmcomic 123 --option="D:/a.yml"
|
|
|
150
151
|
|
|
151
152
|
b. 配置环境变量 `JM_OPTION_PATH` 为option文件路径(推荐)
|
|
152
153
|
|
|
154
|
+
> 请自行google配置环境变量的方式,或使用powershell命令: `setx JM_OPTION_PATH "D:/a.yml"` 重启后生效
|
|
155
|
+
|
|
153
156
|
```sh
|
|
154
|
-
# set JM_OPTION_PATH="D:/a.yml"
|
|
155
157
|
jmcomic 123
|
|
156
158
|
```
|
|
157
159
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
jmcomic/__init__.py,sha256=afRFtpIkAXkt9GtOS-LhzVxRlikGkxkrXWGPfXEoGGQ,903
|
|
2
|
+
jmcomic/api.py,sha256=40mzFEVhR0h_Ta-ub8vMfJ9yx89yvL09XMv9zK0QUvA,3865
|
|
3
|
+
jmcomic/cl.py,sha256=PBSh0JndNFZw3B7WJPj5Y8SeFdKzHE00jIwYo9An-K0,3475
|
|
4
|
+
jmcomic/jm_client_impl.py,sha256=KguizzmrN2etAFvHzZaxbq7c8RtFhvqJzhQIAgPj7Dw,39622
|
|
5
|
+
jmcomic/jm_client_interface.py,sha256=LqJqa-4G7-F98_U9R9QTxFND_9t30B-BIQZa_o0p-KY,19005
|
|
6
|
+
jmcomic/jm_config.py,sha256=rOeKMqZ3HwWk3I-vA0YTCIimBcfdZpvXj7Itg0OKfCo,16767
|
|
7
|
+
jmcomic/jm_downloader.py,sha256=vfAjHggbs4vvtrv9zM8NjeGWXk2-9tlqQaC8iC4FKpw,10351
|
|
8
|
+
jmcomic/jm_entity.py,sha256=7CMOhAkhGN8SFPZiWFUg_YAktVxHlnSOMZLit7oVqRM,19077
|
|
9
|
+
jmcomic/jm_exception.py,sha256=B9APE1jw23JBzCT12eV_imCZny3mNrSXju1p2IquaHA,4801
|
|
10
|
+
jmcomic/jm_option.py,sha256=2tINFsDcncCJbd6FRtCMAidhro6faB8TBLoaSxP3uQ8,21926
|
|
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,,
|
jmcomic-2.5.32.dist-info/RECORD
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
jmcomic/__init__.py,sha256=z57Bl0QasY2F51bWREykDFYoB1HU1zCLap3AXrM-0jc,903
|
|
2
|
-
jmcomic/api.py,sha256=40mzFEVhR0h_Ta-ub8vMfJ9yx89yvL09XMv9zK0QUvA,3865
|
|
3
|
-
jmcomic/cl.py,sha256=PBSh0JndNFZw3B7WJPj5Y8SeFdKzHE00jIwYo9An-K0,3475
|
|
4
|
-
jmcomic/jm_client_impl.py,sha256=KguizzmrN2etAFvHzZaxbq7c8RtFhvqJzhQIAgPj7Dw,39622
|
|
5
|
-
jmcomic/jm_client_interface.py,sha256=LqJqa-4G7-F98_U9R9QTxFND_9t30B-BIQZa_o0p-KY,19005
|
|
6
|
-
jmcomic/jm_config.py,sha256=MqlgTCaFEJfKuhL85eX8Dp6YsXX38BmEmp4rIh4775Y,16782
|
|
7
|
-
jmcomic/jm_downloader.py,sha256=vfAjHggbs4vvtrv9zM8NjeGWXk2-9tlqQaC8iC4FKpw,10351
|
|
8
|
-
jmcomic/jm_entity.py,sha256=kqLtl30o_MN2pwGoahmbqm24pDojIt-45Ey_4cIHfa8,19103
|
|
9
|
-
jmcomic/jm_exception.py,sha256=B9APE1jw23JBzCT12eV_imCZny3mNrSXju1p2IquaHA,4801
|
|
10
|
-
jmcomic/jm_option.py,sha256=2tINFsDcncCJbd6FRtCMAidhro6faB8TBLoaSxP3uQ8,21926
|
|
11
|
-
jmcomic/jm_plugin.py,sha256=e2B_x2adghxn7f8eKAJivDWf8oLY9962Utt1-J70zBw,39902
|
|
12
|
-
jmcomic/jm_toolkit.py,sha256=2XnNwdROgrgDaSx7Xz77B0VE80w294LjnjI8TtiAcL8,29183
|
|
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
|