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

Error getting ANY videos or audios from YT #200

Closed
wolfSYS opened this issue Apr 14, 2021 · 5 comments
Closed

Error getting ANY videos or audios from YT #200

wolfSYS opened this issue Apr 14, 2021 · 5 comments
Assignees
Labels

Comments

@wolfSYS
Copy link

wolfSYS commented Apr 14, 2021

I had to see that all of a sudden your library stopped working. It is not any longer possible to obtain any files from youtube.

yt-lib-not-any-files

Both GetAllVideosAsync() and GetVideoAsync() return NULL für every single YT ID.

@RK4444
Copy link

RK4444 commented Apr 14, 2021

Yeah, the same problem here

@wolfSYS
Copy link
Author

wolfSYS commented Apr 15, 2021

We need the possibility to pass HttpClient to the YoutubeClient. In HttpClient we could set the CONSENT cookie for Youtube like this:

        Uri uri = new Uri("https://www.youtube.com");
        HttpClientHandler handler = new HttpClientHandler();
        handler.CookieContainer = new CookieContainer();
        handler.CookieContainer.Add(uri, new Cookie("CONSENT", "YES+cb", "/", "youtube.com"));
        HttpClient hc = new HttpClient(handler);

        // that would be needed:
        YoutubeClient youtube = new YoutubeClient(hc);_

@omansak omansak self-assigned this Apr 15, 2021
@omansak omansak added the bug label Apr 15, 2021
@omansak
Copy link
Owner

omansak commented Apr 15, 2021

please test #201

@omansak
Copy link
Owner

omansak commented Apr 15, 2021

please test 3.1.1 on github and nuget

@wolfSYS
Copy link
Author

wolfSYS commented Apr 16, 2021

solved with ver 3.1.1
thx a lot!

@wolfSYS wolfSYS closed this as completed Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants