jmcomic 2.5.22__tar.gz → 2.5.24__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.22/src/jmcomic.egg-info → jmcomic-2.5.24}/PKG-INFO +1 -1
  2. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/__init__.py +1 -1
  3. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_config.py +4 -7
  4. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_toolkit.py +6 -7
  5. {jmcomic-2.5.22 → jmcomic-2.5.24/src/jmcomic.egg-info}/PKG-INFO +1 -1
  6. {jmcomic-2.5.22 → jmcomic-2.5.24}/LICENSE +0 -0
  7. {jmcomic-2.5.22 → jmcomic-2.5.24}/README.md +0 -0
  8. {jmcomic-2.5.22 → jmcomic-2.5.24}/setup.cfg +0 -0
  9. {jmcomic-2.5.22 → jmcomic-2.5.24}/setup.py +0 -0
  10. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/api.py +0 -0
  11. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/cl.py +0 -0
  12. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_client_impl.py +0 -0
  13. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_client_interface.py +0 -0
  14. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_downloader.py +0 -0
  15. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_entity.py +0 -0
  16. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_exception.py +0 -0
  17. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_option.py +0 -0
  18. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic/jm_plugin.py +0 -0
  19. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic.egg-info/SOURCES.txt +0 -0
  20. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic.egg-info/dependency_links.txt +0 -0
  21. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic.egg-info/entry_points.txt +0 -0
  22. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic.egg-info/requires.txt +0 -0
  23. {jmcomic-2.5.22 → jmcomic-2.5.24}/src/jmcomic.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jmcomic
3
- Version: 2.5.22
3
+ Version: 2.5.24
4
4
  Summary: Python API For JMComic (禁漫天堂)
5
5
  Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
6
6
  Author: hect0x7
@@ -2,7 +2,7 @@
2
2
  # 被依赖方 <--- 使用方
3
3
  # config <--- entity <--- toolkit <--- client <--- option <--- downloader
4
4
 
5
- __version__ = '2.5.22'
5
+ __version__ = '2.5.24'
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.2'
79
+ APP_VERSION = '1.7.5'
80
80
 
81
81
 
82
82
  # 模块级别共用配置
@@ -127,13 +127,10 @@ class JmModuleConfig:
127
127
 
128
128
  # 移动端API域名
129
129
  DOMAIN_API_LIST = shuffled('''
130
- www.cdnxxx-proxy.vip
131
- www.cdnxxx-proxy.org
132
- www.cdnxxx-proxy.xyz
133
- www.cdnxxx-proxy.co
130
+ www.jmapiproxyxxx.vip
131
+ www.cdnblackmyth.vip
134
132
  www.cdnblackmyth.xyz
135
-
136
-
133
+ www.cdnxxx-proxy.co
137
134
  ''')
138
135
 
139
136
  APP_HEADERS_TEMPLATE = {
@@ -25,31 +25,30 @@ 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+)">\n *?<li.*?>\n *'
29
- r'第(\d+)話\n([\s\S]*?)\n *'
30
- r'<[\s\S]*?>(\d+-\d+-\d+).*?')
28
+ pattern_html_album_episode_list = compile(r'data-album="(\d+)"\s*?>\s*?<li.*?>\s*?第(\d+)話([\s\S]*?)<[\s\S]*?>(\d+-\d+-\d+).*?')
31
29
  pattern_html_album_page_count = compile(r'<span class="pagecount">.*?:(\d+)</span>')
32
30
  pattern_html_album_pub_date = compile(r'>上架日期 : (.*?)</span>')
33
31
  pattern_html_album_update_date = compile(r'>更新日期 : (.*?)</span>')
32
+ pattern_html_tag_a = compile(r'<a[^>]*?>\s*(\S*)\s*</a>')
34
33
  # 作品
35
34
  pattern_html_album_works = [
36
35
  compile(r'<span itemprop="author" data-type="works">([\s\S]*?)</span>'),
37
- compile(r'<a[^>]*?>(.*?)</a>')
36
+ pattern_html_tag_a,
38
37
  ]
39
38
  # 登場人物
40
39
  pattern_html_album_actors = [
41
40
  compile(r'<span itemprop="author" data-type="actor">([\s\S]*?)</span>'),
42
- compile(r'<a[^>]*?>(.*?)</a>')
41
+ pattern_html_tag_a,
43
42
  ]
44
43
  # 标签
45
44
  pattern_html_album_tags = [
46
45
  compile(r'<span itemprop="genre" data-type="tags">([\s\S]*?)</span>'),
47
- compile(r'<a[^>]*?>(.*?)</a>')
46
+ pattern_html_tag_a,
48
47
  ]
49
48
  # 作者
50
49
  pattern_html_album_authors = [
51
50
  compile(r'作者: *<span itemprop="author" data-type="author">([\s\S]*?)</span>'),
52
- compile(r"<a[^>]*?>(.*?)</a>"),
51
+ pattern_html_tag_a,
53
52
  ]
54
53
  # 點擊喜歡
55
54
  pattern_html_album_likes = compile(r'<span id="albim_likes_\d+">(.*?)</span>')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jmcomic
3
- Version: 2.5.22
3
+ Version: 2.5.24
4
4
  Summary: Python API For JMComic (禁漫天堂)
5
5
  Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
6
6
  Author: hect0x7
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes