Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: 下载时考虑 backup_url,支持按照 cdn 优先级排序 #288

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

amtoaer
Copy link
Owner

@amtoaer amtoaer commented Feb 24, 2025

b 站下载链接返回时会包含一个 baseUrl 和两个 backupUrl,之前只会尝试访问 baseUrl。

新的实现会将三个 url 统一作视为视频的下载链接,并依次尝试下载。

默认情况下,url 的请求顺序是 baseUrl -> backupUrl。该 PR 同时引入了 cdn_sorting 配置,默认为 false。如果启用,三个 url 会按照如下优先级进行排序:
48b72cde-f023-4092-907c-bce0c54bec07

@amtoaer amtoaer merged commit a6d0d6b into main Feb 24, 2025
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant