cobweb-launcher 3.1.35__py3-none-any.whl → 3.1.36__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.
cobweb/base/request.py CHANGED
@@ -467,7 +467,7 @@ class Request:
467
467
 
468
468
  while downloaded < self.content_length:
469
469
  _start = downloaded
470
- _end = min(downloaded + chunk_size - 1, self.total_size - 1)
470
+ _end = min(downloaded + chunk_size - 1, self.content_length - 1)
471
471
  detect_settings.setdefault("headers", {})['Range'] = f"bytes={_start}-{_end}"
472
472
 
473
473
  self.response = requests.request(
@@ -481,7 +481,7 @@ class Request:
481
481
  yield chunk_data
482
482
  downloaded += len(chunk_data)
483
483
  retry_count = 0 # 重置重试计数
484
- logging.info(f"下载进度: {downloaded}/{self.total_size} ({downloaded / self.total_size * 100:.1f}%)")
484
+ logging.info(f"下载进度: {downloaded}/{self.content_length} ({downloaded / self.content_length * 100:.1f}%)")
485
485
 
486
486
  elif self.response.status_code == 416: # Range Not Satisfiable
487
487
  logging.info("Range请求超出范围")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cobweb-launcher
3
- Version: 3.1.35
3
+ Version: 3.1.36
4
4
  Summary: spider_hole
5
5
  Home-page: https://github.com/Juannie-PP/cobweb
6
6
  Author: Juannie-PP
@@ -5,7 +5,7 @@ cobweb/base/__init__.py,sha256=NanSxJr0WsqjqCNOQAlxlkt-vQEsERHYBzacFC057oI,222
5
5
  cobweb/base/common_queue.py,sha256=hYdaM70KrWjvACuLKaGhkI2VqFCnd87NVvWzmnfIg8Q,1423
6
6
  cobweb/base/item.py,sha256=1bS4U_3vzI2jzSSeoEbLoLT_5CfgLPopWiEYtaahbvw,1674
7
7
  cobweb/base/logger.py,sha256=Vsg1bD4LXW91VgY-ANsmaUu-mD88hU_WS83f7jX3qF8,2011
8
- cobweb/base/request.py,sha256=PfOnYDD6juaiHoeVuQvFEDi11o68HHwivasy00Wa06c,21001
8
+ cobweb/base/request.py,sha256=TJ3kh9mHgOsp8QZJBAi5aMZ6lkAm_BKAVNFJbI7zNg8,21013
9
9
  cobweb/base/response.py,sha256=L3sX2PskV744uz3BJ8xMuAoAfGCeh20w8h0Cnd9vLo0,11377
10
10
  cobweb/base/seed.py,sha256=ddaWCq_KaWwpmPl1CToJlfCxEEnoJ16kjo6azJs9uls,5000
11
11
  cobweb/base/task_queue.py,sha256=2MqGpHGNmK5B-kqv7z420RWyihzB9zgDHJUiLsmtzOI,6402
@@ -34,8 +34,8 @@ cobweb/utils/decorators.py,sha256=ZwVQlz-lYHgXgKf9KRCp15EWPzTDdhoikYUNUCIqNeM,11
34
34
  cobweb/utils/dotting.py,sha256=L-jGSApdnFIP4jUWH6p5qIme0aJ1vyDrxAx8wOJWvcs,1960
35
35
  cobweb/utils/oss.py,sha256=wmToIIVNO8nCQVRmreVaZejk01aCWS35e1NV6cr0yGI,4192
36
36
  cobweb/utils/tools.py,sha256=14TCedqt07m4z6bCnFAsITOFixeGr8V3aOKk--L7Cr0,879
37
- cobweb_launcher-3.1.35.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
38
- cobweb_launcher-3.1.35.dist-info/METADATA,sha256=VRoCsFQGFNsZ3f7_edkD6qY-ZGUxB3TNxn8ATShhHaA,6051
39
- cobweb_launcher-3.1.35.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
40
- cobweb_launcher-3.1.35.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
41
- cobweb_launcher-3.1.35.dist-info/RECORD,,
37
+ cobweb_launcher-3.1.36.dist-info/LICENSE,sha256=z1rxSIGOyzcSb3orZxFPxzx-0C1vTocmswqBNxpKfEk,1063
38
+ cobweb_launcher-3.1.36.dist-info/METADATA,sha256=TId03-9pSFsc_2ux3EpwZnRPdvczGrk1iFTp1QsEG3E,6051
39
+ cobweb_launcher-3.1.36.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
40
+ cobweb_launcher-3.1.36.dist-info/top_level.txt,sha256=4GETBGNsKqiCUezmT-mJn7tjhcDlu7nLIV5gGgHBW4I,7
41
+ cobweb_launcher-3.1.36.dist-info/RECORD,,