p115client 0.0.5.11.8.1__tar.gz → 0.0.5.11.8.2__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 (25) hide show
  1. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/PKG-INFO +1 -1
  2. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/client.py +7 -8
  3. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/pyproject.toml +1 -1
  4. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/LICENSE +0 -0
  5. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/__init__.py +0 -0
  6. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/_upload.py +0 -0
  7. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/const.py +0 -0
  8. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/exception.py +0 -0
  9. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/py.typed +0 -0
  10. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/__init__.py +0 -0
  11. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/attr.py +0 -0
  12. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/download.py +0 -0
  13. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/edit.py +0 -0
  14. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/export_dir.py +0 -0
  15. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/fs_files.py +0 -0
  16. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/history.py +0 -0
  17. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/iterdir.py +0 -0
  18. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/life.py +0 -0
  19. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/pool.py +0 -0
  20. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/request.py +0 -0
  21. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/upload.py +0 -0
  22. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/util.py +0 -0
  23. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/tool/xys.py +0 -0
  24. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/p115client/type.py +0 -0
  25. {p115client-0.0.5.11.8.1 → p115client-0.0.5.11.8.2}/readme.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p115client
3
- Version: 0.0.5.11.8.1
3
+ Version: 0.0.5.11.8.2
4
4
  Summary: Python 115 webdisk client.
5
5
  Home-page: https://github.com/ChenyangGao/p115client
6
6
  License: MIT
@@ -220,12 +220,11 @@ def complete_lixian_api(
220
220
  return complete_api(path, base, base_url=base_url)
221
221
 
222
222
 
223
- def try_parse_int(s: int | str, /):
224
- if not isinstance(s, str):
225
- return s
226
- if s == "0":
227
- return 0
228
- if s.startswith("0") or s.strip(digits):
223
+ def try_parse_int(
224
+ s, /,
225
+ _match=re_compile("-?[1-9][0-9]*").fullmatch,
226
+ ):
227
+ if not isinstance(s, str) or not s or not _match(s):
229
228
  return s
230
229
  return int(s)
231
230
 
@@ -1671,7 +1670,7 @@ class ClientRequestMixin:
1671
1670
 
1672
1671
  GET https://qrcodeapi.115.com/api/1.0/web/1.0/qrcode
1673
1672
 
1674
- :params uid: 二维码的 uid
1673
+ :param uid: 二维码的 uid
1675
1674
 
1676
1675
  :return: 图片的二进制数据(PNG 图片)
1677
1676
  """
@@ -15468,7 +15467,7 @@ class P115Client(P115OpenClient):
15468
15467
  这个接口只支持 web 的 cookies,其它设备会返回空数据,而且获取得到的 m3u8 里的链接,也是 m3u8,会绑定前一次请求时的 user-agent
15469
15468
 
15470
15469
  :param pickcode: 视频文件的 pickcode
15471
- :params definition: 画质,默认列出所有画质。但可进行筛选,常用的为:
15470
+ :param definition: 画质,默认列出所有画质。但可进行筛选,常用的为:
15472
15471
  - 0: 各种分辨率(默认)
15473
15472
  - 1: SD 标清(约为 480p)
15474
15473
  - 3: HD 超清(约为 720p)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "p115client"
3
- version = "0.0.5.11.8.1"
3
+ version = "0.0.5.11.8.2"
4
4
  description = "Python 115 webdisk client."
5
5
  authors = ["ChenyangGao <wosiwujm@gmail.com>"]
6
6
  license = "MIT"