Use a checked SVIP/VIP link or probed H5 file URL for large Quark and UC files (#298)

* Route large Quark and UC files through a checked SVIP/VIP link or a probed H5 file URL.

Files at or below 10MiB keep the existing share download. Larger files use the account direct link only after the member API reports an unexpired SVIP/VIP, and otherwise return a dl-c file URL with the real filename. HTML, playlists, and account cookies are not treated as a public download.

Co-authored-by: qaiu <[email protected]>

* Open Quark and UC browser downloads without a Referer.

The parse result, file list, dialog, and show-file download actions now use a link with referrerpolicy=no-referrer so a click does not send the site Referer that makes the public CDN return 403 HTML.

Co-authored-by: qaiu <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
This commit is contained in:
qaiuandCursor Agent authored and GitHub committed 2026-11-23 02:53:53 +08:00
1 parent a86b26d668
commit 24c22fad7f
14 files changed
+1495 -156

No files matched your search

@@ -16,6 +16,7 @@ import cn.qaiu.lz.web.service.DbService;
import cn.qaiu.parser.PanDomainTemplate;
import cn.qaiu.parser.IPanTool;
import cn.qaiu.parser.ParserCreate;
import cn.qaiu.parser.impl.QuarkFamilyDownloadPolicy;
import cn.qaiu.parser.clientlink.ClientLinkGeneratorFactory;
import cn.qaiu.parser.clientlink.ClientLinkType;
import cn.qaiu.util.CommonUtils;
@@ -318,8 +319,9 @@ public class ParserApi {
}
}
boolean needDownloader = Boolean.TRUE.equals(paramJson.getBoolean("needDownloader"))
|| !downloadHeaders.isEmpty();
boolean publicDirect = Boolean.TRUE.equals(shareLinkInfo.getOtherParam().get("publicDirectLink"));
boolean needDownloader = QuarkFamilyDownloadPolicy.prepareDownloader(downloadHeaders,
Boolean.TRUE.equals(paramJson.getBoolean("needDownloader")), publicDirect);
shareLinkInfo.getOtherParam().put("downloadUrl", downloadUrl);
if (!downloadHeaders.isEmpty()) {