Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

🐞 错误报告 B站获取字幕api好像改了,获取不到字幕了 #148

Open
Yuiffy opened this issue Jul 12, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Yuiffy
Copy link
Contributor

Yuiffy commented Jul 12, 2023

错误报告 🐞

原先获取字幕链接所用的api:https://api.bilibili.com/x/web-interface/view?bvid=xxxxx
里面今天获取到的:"subtitle":null

看了下b站播放页面, 需要调用这个api:https://api.bilibili.com/x/player/wbi/v2?aid=658265572&cid=1193639024&w_rid=a4ac5c3187c63c907ddb531d2177117c&wts=1689134377
获取到的:
"subtitle_url":"//aisubtitle.hdslb.com/bfs/ai_subtitle/prod/6582655721193639024b86c092b75e877a90c9875c93010dc52?auth_key=1689134414-5030fcbe425b46b0abc46153062d6f8a-0-34f3e05cfb6bfd90429fae1eaf91eff6"

(更新:看代码里是当有pageNumber的情况下,会调用这个wbi/v2,但是现在有的视频没有pageNumber,但是在合集里)
测试使用的视频:https://www.bilibili.com/video/BV1Wh4y1Z7ho/?vd_source=64f8ab6afee9a1df620f5e1f5a994f6d

错误描述 🤔

同上

附加信息 📝

请提供以下信息以帮助我们更快地解决问题:

环境:win10,chrome和edge

@JimmyLv
Copy link
Owner

JimmyLv commented Jul 13, 2023

也就是只有分p的视频会出错哇?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants