jmcomic 2.5.32__tar.gz → 2.5.34__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.
Files changed (23) hide show
  1. {jmcomic-2.5.32/src/jmcomic.egg-info → jmcomic-2.5.34}/PKG-INFO +5 -3
  2. {jmcomic-2.5.32 → jmcomic-2.5.34}/README.md +2 -1
  3. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/__init__.py +1 -1
  4. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_config.py +5 -5
  5. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_entity.py +3 -3
  6. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_toolkit.py +3 -3
  7. {jmcomic-2.5.32 → jmcomic-2.5.34/src/jmcomic.egg-info}/PKG-INFO +5 -3
  8. {jmcomic-2.5.32 → jmcomic-2.5.34}/LICENSE +0 -0
  9. {jmcomic-2.5.32 → jmcomic-2.5.34}/setup.cfg +0 -0
  10. {jmcomic-2.5.32 → jmcomic-2.5.34}/setup.py +0 -0
  11. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/api.py +0 -0
  12. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/cl.py +0 -0
  13. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_client_impl.py +0 -0
  14. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_client_interface.py +0 -0
  15. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_downloader.py +0 -0
  16. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_exception.py +0 -0
  17. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_option.py +0 -0
  18. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic/jm_plugin.py +0 -0
  19. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic.egg-info/SOURCES.txt +0 -0
  20. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic.egg-info/dependency_links.txt +0 -0
  21. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic.egg-info/entry_points.txt +0 -0
  22. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic.egg-info/requires.txt +0 -0
  23. {jmcomic-2.5.32 → jmcomic-2.5.34}/src/jmcomic.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: jmcomic
3
- Version: 2.5.32
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
 
@@ -111,8 +111,9 @@ jmcomic 123 --option="D:/a.yml"
111
111
 
112
112
  b. 配置环境变量 `JM_OPTION_PATH` 为option文件路径(推荐)
113
113
 
114
+ > 请自行google配置环境变量的方式,或使用powershell命令: `setx JM_OPTION_PATH "D:/a.yml"` 重启后生效
115
+
114
116
  ```sh
115
- # set JM_OPTION_PATH="D:/a.yml"
116
117
  jmcomic 123
117
118
  ```
118
119
 
@@ -2,7 +2,7 @@
2
2
  # 被依赖方 <--- 使用方
3
3
  # config <--- entity <--- toolkit <--- client <--- option <--- downloader
4
4
 
5
- __version__ = '2.5.32'
5
+ __version__ = '2.5.34'
6
6
 
7
7
  from .api import *
8
8
  from .jm_plugin import *
@@ -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.8'
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.jmapiproxyxxx.vip
131
- www.cdnblackmyth.vip
132
- www.cdnblackmyth.xyz
133
- www.cdnxxx-proxy.co
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 = {
@@ -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, 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, pub_date)]
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, _pub_date = self.episode_list[index]
508
+ pid, pindex, pname = self.episode_list[index]
509
509
 
510
510
  photo = JmModuleConfig.photo_class()(
511
511
  photo_id=pid,
@@ -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+)([\s\S]*?)<[\s\S]*?>(\d+-\d+-\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, 'zh_cn')
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, None)
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.2
1
+ Metadata-Version: 2.4
2
2
  Name: jmcomic
3
- Version: 2.5.32
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
 
File without changes
File without changes
File without changes
File without changes
File without changes