-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add more parameter to look a lot like official youtube client #4851
base: master
Are you sure you want to change the base?
Conversation
2f815b6
to
6482b1b
Compare
78f8b80
to
f565b81
Compare
f565b81
to
ada232a
Compare
ada232a
to
ddd232a
Compare
As far as I know, these can be safely omitted. On some browsers with stronger privacy/adblocking features (like Tor), I've often seen these empty.
Maybe it's time to split the context logic by client, like NewPipe does? |
ok then we won't set those.
Kinda don't have the time to do it today. I added all the parameters that I found on youtube.js because I have a separate proxy server for yewtu.be that exclusively use youtube.js and this one has never seen any issue about "watch on the latest version". |
@SamantazFox can we merge into master branch? |
browser_name: "Chrome", | ||
browser_version: "128.0.0.0", | ||
platform: "MOBILE", | ||
user_agent: WEB_USER_AGENT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a different UA here. "Windows NT 10.0" won't cut it I guess!
os_name: "Windows", | ||
os_version: WINDOWS_VERSION, | ||
browser_name: "Chrome", | ||
browser_version: "128.0.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you put that in a constant at the top? It will be easier to maintain in the future!
Taken from a request done by youtube.js: https://github.com/LuanRT/YouTube.js and I tried to add as much new parameters as possible.
example_yt_request_youtubejs.txt
We are missing:
inside
client_context = {
but I can't get my head around the compiler issue:Other parameters we are missing:
Remarks: