feat(share): UC/夸克/123 免转存直链播放 - #27
Merged
Merged
Conversation
免转存:直接用分享凭据换直链,不转存到个人账号,减少等待与空间占用。 quark_uc_share: - 新增 resolveShareDirectLink,用分享凭据 POST /file/download 换原始文件直链(=原画)。 - UC 匿名取链 + 魔法 Referer(下载地址+"\ ")绕过阿里云 checkplay 回调,无需账号; 夸克 share /file/download 需账号上下文,带主账号 Cookie 取链。 - 直链 URL 追加 #x-referer=raw 片段标记,供客户端代理(如 alist-tvbox)识别后 改用魔法 Referer;后端代理仍由 link.Header 生效。片段不发往 CDN。 - Link() 以 share-direct 为主、save+delete 兜底;fid_token 失效按 pid 重取重试。 123_share: - 匿名优先换链(www.123pan.cn,无 Bearer/无签名),失败回退账号;无需 123Pan 账号即可播放。 - 识别 5112 流量包不足,直接返回真实原因不再静默回退。 - 抽出 unwrap123DownloadLink 解包 helper 复用。 测试:quark_uc_share 缓存与 share-direct 路由测试;123_share 匿名优先与 5112 测试。 Co-Authored-By: Claude <noreply@anthropic.com>
- 有 SVIP 主账号 → 转存(save+download 原画)为主、免转存兜底; 非 SVIP / 无账号 → 免转存(share-direct)为主、转存兜底。 - 超大文件(如 ISO)免转存单直链不稳,SVIP 走转存更可靠播放。 - 恢复 accountIsSVIP 及 SVIP 路由测试(Transferred/Saved-fallback 覆盖)。 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.