jmcomic 2.3.7__tar.gz → 2.3.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jmcomic
3
- Version: 2.3.7
3
+ Version: 2.3.8
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.3.7'
5
+ __version__ = '2.3.8'
6
6
 
7
7
  from .api import *
8
8
  from .jm_plugin import *
@@ -271,7 +271,14 @@ class JmImageClient:
271
271
  raise NotImplementedError
272
272
 
273
273
  @classmethod
274
- def img_is_not_need_to_decode(cls, data_original: str, _resp):
274
+ def img_is_not_need_to_decode(cls, data_original: str, _resp) -> bool:
275
+ # https://cdn-msp2.18comic.vip/media/photos/498976/00027.gif?v=1697541064
276
+ query_params_index = data_original.find('?')
277
+
278
+ if query_params_index != -1:
279
+ data_original = data_original[:query_params_index]
280
+
281
+ # https://cdn-msp2.18comic.vip/media/photos/498976/00027.gif
275
282
  return data_original.endswith('.gif')
276
283
 
277
284
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jmcomic
3
- Version: 2.3.7
3
+ Version: 2.3.8
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