mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-12-04 02:23:59 +00:00
Parse Ctfile shares with the new url API and ALTCHA v2 (#303)
* 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]>
This commit is contained in:
1 parent
feff1b88c1
commit
542d246aab
12 files changed
+2688
-566
No files matched your search
@@ -54,6 +54,7 @@ public class AppMain {
|
||||
deploy.addPostShutdownTask(cn.qaiu.parser.PanBase::shutdownSharedClients);
|
||||
deploy.addPostShutdownTask(cn.qaiu.parser.IPanTool::shutdownCloseAfterScheduler);
|
||||
deploy.addPostShutdownTask(cn.qaiu.parser.impl.PodTool::shutdownWorkerExecutor);
|
||||
deploy.addPostShutdownTask(cn.qaiu.parser.impl.CtTool::shutdownWorkerExecutor);
|
||||
// start
|
||||
deploy.start(args, AppMain::exec);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user