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

Roaming #18

Open
Suysker opened this issue Apr 14, 2023 · 2 comments
Open

Roaming #18

Suysker opened this issue Apr 14, 2023 · 2 comments

Comments

@Suysker
Copy link

Suysker commented Apr 14, 2023

大佬,我看了你的Roaming脚本
app上的播放地址主要是https://api.bilibili.com/pgc/view/v2/app/season和https://grpc.biliapi.net/bilibili.pgc.gateway.player.v2.PlayURL/PlayView获取的(grpc失败才会回退到app.bilibili.com域名)。
现有的漫游服务器都是不支持访问grpc.biliapi.net与api.bilibili.com的请求参数的,这个漫游脚本以后会怎么处理?
还有港澳台判断的逻辑好像也无法从携带的参数里获取?

@VirgilClyne
Copy link
Contributor

目前思路是
http-request部分:
先解析新接口POST请求的gRPC的request.body
构造成老接口的GET请求的request.url
发往反代

http-response部分:
将老接口GET请求的JSON的response.body
构造成新接口POST请求的gRPC的request.body
发回给app

当然我会先写国际版bili才测试反代逻辑正常
再处理国内版bili

@VirgilClyne
Copy link
Contributor

还有港澳台判断的逻辑好像也无法从携带的参数里获取?

本地有缓存ep和ss的区域信息
备用方案可能会查第三方数据库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants