jmcomic 2.5.4__tar.gz → 2.5.5__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.4/src/jmcomic.egg-info → jmcomic-2.5.5}/PKG-INFO +1 -1
  2. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/__init__.py +1 -1
  3. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_config.py +2 -2
  4. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_toolkit.py +5 -9
  5. {jmcomic-2.5.4 → jmcomic-2.5.5/src/jmcomic.egg-info}/PKG-INFO +1 -1
  6. {jmcomic-2.5.4 → jmcomic-2.5.5}/LICENSE +0 -0
  7. {jmcomic-2.5.4 → jmcomic-2.5.5}/README.md +0 -0
  8. {jmcomic-2.5.4 → jmcomic-2.5.5}/setup.cfg +0 -0
  9. {jmcomic-2.5.4 → jmcomic-2.5.5}/setup.py +0 -0
  10. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/api.py +0 -0
  11. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/cl.py +0 -0
  12. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_client_impl.py +0 -0
  13. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_client_interface.py +0 -0
  14. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_downloader.py +0 -0
  15. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_entity.py +0 -0
  16. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_exception.py +0 -0
  17. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_option.py +0 -0
  18. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic/jm_plugin.py +0 -0
  19. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic.egg-info/SOURCES.txt +0 -0
  20. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic.egg-info/dependency_links.txt +0 -0
  21. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic.egg-info/entry_points.txt +0 -0
  22. {jmcomic-2.5.4 → jmcomic-2.5.5}/src/jmcomic.egg-info/requires.txt +0 -0
  23. {jmcomic-2.5.4 → jmcomic-2.5.5}/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.4
3
+ Version: 2.5.5
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.4'
5
+ __version__ = '2.5.5'
6
6
 
7
7
  from .api import *
8
8
  from .jm_plugin import *
@@ -52,7 +52,7 @@ class JmMagicConstants:
52
52
  APP_TOKEN_SECRET = '18comicAPP'
53
53
  APP_TOKEN_SECRET_2 = '18comicAPPContent'
54
54
  APP_DATA_SECRET = '185Hcomic3PAPP7R'
55
- APP_VERSION = '1.6.4'
55
+ APP_VERSION = '1.6.6'
56
56
  APP_HEADERS_TEMPLATE = {
57
57
  'Accept-Encoding': 'gzip',
58
58
  'user-agent': 'Mozilla/5.0 (Linux; Android 9; V1938CT Build/PQ3A.190705.09211555; wv) AppleWebKit/537.36 (KHTML, '
@@ -156,7 +156,7 @@ class JmModuleConfig:
156
156
  # log时解码url
157
157
  flag_decode_url_when_logging = True
158
158
  # 当内置的版本号落后时,使用最新的禁漫app版本号
159
- flag_use_version_newer_if_behind = False
159
+ flag_use_version_newer_if_behind = True
160
160
 
161
161
  # 关联dir_rule的自定义字段与对应的处理函数
162
162
  # 例如:
@@ -359,13 +359,7 @@ class JmPageTool:
359
359
 
360
360
  # 用来提取搜索页面的的album的信息
361
361
  pattern_html_search_album_info_list = compile(
362
- r'<a href="/album/(\d+)/.+"[\s\S]*?'
363
- r'title="(.*?)"[\s\S]*?'
364
- r'(<div class="label-category" style="">'
365
- r'\n(.*)\n</div>\n<div class="label-sub" style=" ">'
366
- r'(.*?)\n<[\s\S]*?)?'
367
- r'<div class="title-truncate tags .*>\n'
368
- r'(<a[\s\S]*?) </div>'
362
+ r'<a href="/album/(\d+)/[\s\S]*?title="(.*?)"([\s\S]*?)<div class="title-truncate tags .*>([\s\S]*?)</div>'
369
363
  )
370
364
 
371
365
  # 用来提取分类页面的的album的信息
@@ -383,7 +377,7 @@ class JmPageTool:
383
377
  # 查找错误,例如 [错误,關鍵字過短,請至少輸入兩個字以上。]
384
378
  pattern_html_search_error = compile(r'<fieldset>\n<legend>(.*?)</legend>\n<div class=.*?>\n(.*?)\n</div>\n</fieldset>')
385
379
 
386
- pattern_html_search_total = compile(r'<span class="text-white">(\d+)</span> A漫.'), 0
380
+ pattern_html_search_total = compile(r'class="text-white">(\d+)</span> A漫.'), 0
387
381
 
388
382
  # 收藏页面的本子结果
389
383
  pattern_html_favorite_content = compile(
@@ -424,7 +418,9 @@ class JmPageTool:
424
418
 
425
419
  album_info_list = cls.pattern_html_search_album_info_list.findall(html)
426
420
 
427
- for (album_id, title, _, label_category, label_sub, tag_text) in album_info_list:
421
+ for (album_id, title, _label_category_text, tag_text) in album_info_list:
422
+ # 从label_category_text中可以解析出label-category和label-sub
423
+ # 这里不作解析,因为没什么用...
428
424
  tags = cls.pattern_html_search_tags.findall(tag_text)
429
425
  content.append((
430
426
  album_id, {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jmcomic
3
- Version: 2.5.4
3
+ Version: 2.5.5
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