-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
Unable to download a private video with cookies (400 Bad Request
)
#852
Comments
Are you getting status code 400 or actually 401? |
400 bad request
)
400 bad request
)400 Bad Request
)
Same issue here with version 6.5.3. |
The 400 Bad Request error occurs due to the "clientName" and "clientVersion" fields in the GetPlayerResponseAsync function. To resolve this issue, you need to extract "clientName" and "clientVersion" from the HTML within the GetVideoWatchPageAsync function and use them in the GetPlayerResponseAsync function. |
Version
6.5
Platform
.NET 9 / Windows 11
Steps to reproduce
Summary
I want to download private videos after having the Youtube cookie file.
I tried to check with the yt-dlp tool and the video can still be downloaded normally.
yt-dlp --cookies "youtube.com_cookies.txt" url
I solved it by reading the content from the cookie file and initializing the Youtube Client to download the video but got an error
Details
Details
After getting the video information, the following code gives an error.
streamManifest = await youtube.Videos.Streams.GetManifestAsync(videoUrl, cancellationToken);
Checklist
The text was updated successfully, but these errors were encountered: