mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-11-25 06:47:00 +00:00
* Parse Ctfile shares with the new url API and ALTCHA v2 The legacy getfile.php and getdir.php endpoints now answer every share with Cloudflare Turnstile. Password-free files and folders use ALTCHA PBKDF2 instead: solve it off the event loop, reuse access_pass for the same owner, and fetch the direct link from POST /url/download. Password shares stay on Turnstile and are reported separately from missing links and wrong or missing passwords. Co-authored-by: qaiu <[email protected]> * Add Ctfile v4 login parsing for password-protected shares Password shares are blocked by Turnstile on the anonymous web API. When a refresh token or access token is configured, convert the share to an xtc link and use the official client list and fetch-url calls. Password-free shares still use ALTCHA. Tests use short synthetic fixtures only. Co-authored-by: qaiu <[email protected]> * Parse password-protected Ctfile shares with anonymous ALTCHA A password share's first response is often labeled Turnstile, but a fresh ALTCHA token plus the passcode returns the file. Try that before any login. Keep the v4 client only as a fallback when Turnstile remains and a token is configured. Live checks download the sample PDF and a directory zip. Co-authored-by: qaiu <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>