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

关于检测YouTube的Premium 情况 #78

Open
shnode opened this issue Jul 18, 2022 · 2 comments
Open

关于检测YouTube的Premium 情况 #78

shnode opened this issue Jul 18, 2022 · 2 comments

Comments

@shnode
Copy link

shnode commented Jul 18, 2022

当使用欧盟节点的时候,会强制跳转到一个是否接受cookie的界面,从而导致GL":"(.*?)"返回NULL,最终会被赐值为US

解决方法就是先在访问Bhttps://www.youtube.com/premium后返回的头部查找Location,这里先查找gl,再去做页面内GL查找

Location: https://consent.youtube.com/m?continue=https%3A%2F%2Fwww.youtube.com%2Fpremium%3Fcbrd%3D1&gl=RO&m=0&pc=yt&uxe=eomty&hl=en&src=1

@KOP-XIAO
Copy link
Owner

😄 你直接改好PR一下吧

@shnode
Copy link
Author

shnode commented Jul 27, 2022

发现个比较简单的方法,ytb的检测连接改为
https://www.youtube.com/premium?cbrd=1&ucbcb=1
就行了,保险起见,可以在headers多加个cookie,值为空就行了。

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