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

Age-restricted content cannot be parsed, 403 is returned #806

Closed
4 of 6 tasks
Aimeast opened this issue Aug 24, 2024 · 2 comments
Closed
4 of 6 tasks

Age-restricted content cannot be parsed, 403 is returned #806

Aimeast opened this issue Aug 24, 2024 · 2 comments

Comments

@Aimeast
Copy link

Aimeast commented Aug 24, 2024

Version

6.4.0.0

Platform

.NET8 / Windows 10 & Ubuntu 24

Steps to reproduce

var httpClient = CreateHttpClient(); // All browser cookies have been loaded
var youtube = new YoutubeClient(httpClient);
var video = await youtube.Videos.GetAsync("https://www.youtube.com/watch?v=rXMX4YJ7Lks"); // This Id was mentioned in #606

Exception: HttpRequestException: Response status code does not indicate success: 403 (Forbidden).

Details

I noticed that #606 solved the access to age-restricted content, but now it seems that age-restricted content cannot be parsed successfully, even with all cookies attached. I used the videoId="rXMX4YJ7Lks" modified by #606 for testing.
I don't know where I used it wrong, or if parsing age-restricted content is not supported now.

Checklist

  • I have looked through existing issues to make sure that this bug has not been reported before
  • I have provided a descriptive title for this issue
  • I have made sure that this bug is reproducible on the latest version of the package
  • I have provided all the information needed to reproduce this bug as efficiently as possible
  • I have sponsored this project
  • I have not read any of the above and just checked all the boxes to submit the issue
@Aimeast Aimeast added the bug label Aug 24, 2024
@Tyrrrz
Copy link
Owner

Tyrrrz commented Aug 24, 2024

Yeah, it routinely gets broken by YouTube. Although it's weird that it doesn't work with cookies.

@Tyrrrz Tyrrrz added duplicate and removed bug labels Sep 25, 2024
@Tyrrrz
Copy link
Owner

Tyrrrz commented Sep 25, 2024

Duplicate of #795

@Tyrrrz Tyrrrz marked this as a duplicate of #795 Sep 25, 2024
@Tyrrrz Tyrrrz closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants