wnm168 commited on
Commit
5f5b986
·
verified ·
1 Parent(s): 7214de9

Update pikpakapi/__init__.py

Browse files
Files changed (1) hide show
  1. pikpakapi/__init__.py +4 -2
pikpakapi/__init__.py CHANGED
@@ -931,11 +931,13 @@ class PikPakApi:
931
  """
932
  data = {
933
  "file_ids": ids,
934
- "share_to": "encryptedlink" if need_password else "publiclink",
 
 
935
  "expiration_days": expiration_days,
936
  "pass_code_option": "REQUIRED" if need_password else "NOT_REQUIRED",
937
  }
938
- captcha_result = await self.captcha_init(f"GET:/drive/v1/share")
939
  self.captcha_token = captcha_result.get("captcha_token")
940
  result = await self._request_post(
941
  url=f"https://{self.PIKPAK_API_HOST}/drive/v1/share",
 
931
  """
932
  data = {
933
  "file_ids": ids,
934
+ "share_to": "copy",
935
+ "restore_limit":"-1",
936
+ "expiration_days":"-1",
937
  "expiration_days": expiration_days,
938
  "pass_code_option": "REQUIRED" if need_password else "NOT_REQUIRED",
939
  }
940
+ captcha_result = await self.captcha_init(f"POST:/drive/v1/share")
941
  self.captcha_token = captcha_result.get("captcha_token")
942
  result = await self._request_post(
943
  url=f"https://{self.PIKPAK_API_HOST}/drive/v1/share",