fix(lanzou): support acw_sc__v2 and secondary validation for download link#1379
Merged
jyxjjj merged 7 commits intoOpenListTeam:mainfrom Sep 30, 2025
Merged
fix(lanzou): support acw_sc__v2 and secondary validation for download link#1379jyxjjj merged 7 commits intoOpenListTeam:mainfrom
jyxjjj merged 7 commits intoOpenListTeam:mainfrom
Conversation
在最新的蓝奏云解析中,最后重定向获取真实地址时也需要添加acw_sc__v2信息 Signed-off-by: HG-ha <60115106+HG-ha@users.noreply.github.com>
Signed-off-by: HG-ha <60115106+HG-ha@users.noreply.github.com>
Signed-off-by: HG-ha <60115106+HG-ha@users.noreply.github.com>
Member
|
请修改标题 |
Contributor
Author
已处理 |
foxxorcat
previously approved these changes
Sep 28, 2025
Member
foxxorcat
left a comment
There was a problem hiding this comment.
没啥问题,验证过CalcAcwScV2能用吗,虽然我移植了这个验证,但是一直没有触发过。
Contributor
Author
|
这是最新acw_sc_v2,已验证可用的python版本 |
Closed
8 tasks
foxxorcat
previously approved these changes
Sep 28, 2025
ILoveScratch2
previously approved these changes
Sep 28, 2025
Handle error when reading response body. Signed-off-by: HG-ha <60115106+HG-ha@users.noreply.github.com>
优化重定向资源管理,添加二次人机验证acw_sc__v2处理 Signed-off-by: HG-ha <60115106+HG-ha@users.noreply.github.com>
Contributor
Author
|
重定向获取真实下载地址、触发二次人机验证时,都需要处理acw_sc__v2,已更新代码 |
Contributor
Author
Contributor
Author
|
此合并无进展,已推送临时修复分支到docker hub |
Member
|
才两天 |
xrgzs
approved these changes
Sep 30, 2025
jyxjjj
approved these changes
Sep 30, 2025
7 tasks
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.

Description / 描述
在
drivers/lanzou/util.go的getFilesByShareUrl函数中,增加了对获取最终下载链接时acw_sc__v2验证的处理。当请求下载页面以获取302重定向时,如果服务器返回的是包含
acw_sc__v2JavaScript 验证的页面而不是重定向,代码现在会:acw_sc__v2的值。Motivation and Context / 背景
蓝奏云更新了其安全策略,在获取最终下载链接的步骤中也加入了
acw_sc__v2验证。这导致在没有相应处理的情况下,无法获取到真实的下载地址,从而导致解析失败。此更改修复了该问题,使程序能够正确处理这种验证,保证蓝奏云分享链接解析功能的稳定性。
Closes #XXXX
Relates to #XXXX
How Has This Been Tested? / 测试
通过对触发了
acw_sc__v2验证的蓝奏云文件分享链接进行实际测试,验证了修改后的代码可以成功绕过验证并获取到正确的最终下载地址。Checklist / 检查清单
我已阅读 CONTRIBUTING 文档。
go fmtor prettier.我已使用
go fmt或 prettier 格式化提交的代码。我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
我已相应更新了相关仓库(若适用)。