p115client 0.0.5.6.4__tar.gz → 0.0.5.6.6__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.
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/PKG-INFO +1 -1
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/client.py +5 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/pyproject.toml +1 -1
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/LICENSE +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/__init__.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/_upload.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/const.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/exception.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/py.typed +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/__init__.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/download.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/edit.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/export_dir.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/fs_files.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/iterdir.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/life.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/pool.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/request.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/upload.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/tool/xys.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/p115client/type.py +0 -0
- {p115client-0.0.5.6.4 → p115client-0.0.5.6.6}/readme.md +0 -0
@@ -194,6 +194,8 @@ def complete_proapi(
|
|
194
194
|
base_url = "https://proapi.115.com"
|
195
195
|
elif not base_url:
|
196
196
|
base_url = "http://proapi.115.com"
|
197
|
+
if not app and path.startswith("/open/") and base_url == "http://proapi.115.com":
|
198
|
+
base_url = "https://proapi.115.com"
|
197
199
|
return f"{base_url}{app}{path}"
|
198
200
|
|
199
201
|
|
@@ -5254,6 +5256,9 @@ class P115Client(ClientRequestMixin):
|
|
5254
5256
|
elif data is not None:
|
5255
5257
|
request_kwargs["data"] = data
|
5256
5258
|
request_kwargs.setdefault("parse", default_parse)
|
5259
|
+
if url.startswith("https://proapi.115.com/open/"):
|
5260
|
+
headers["cookie"] = ""
|
5261
|
+
return request(url=url, method=method, **request_kwargs)
|
5257
5262
|
def gen_step():
|
5258
5263
|
check_for_relogin = self.check_for_relogin
|
5259
5264
|
cant_relogin = not callable(check_for_relogin)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|