Closed CanePlayz closed 1 year ago
It also happens to me.
I think one fix could be to just get the cookies of https://www.youtube.com
because it seems that https://www.google.com
and https://www.youtube.com
share somes cookies and they can't be mapped into a dictionary.
So instead of : https://github.com/Tyrrrz/YoutubeDownloader/blob/e045cf0b315024d903cc003d9a349ffbd328ff8b/YoutubeDownloader/Views/Dialogs/AuthSetupView.xaml.cs#L63 Just get youtube cookies:
var cookies = await WebBrowser.CoreWebView2.CookieManager.GetCookiesAsync("https://www.youtube.com");
Other fix could be using the list of cookies directly instead of the dictionary mapping them from WebView2Cookie
to Cookie
like this:
ViewModel.Cookies = cookies.Select(i => i.ToSystemNetCookie())
And don't specify the domain in: https://github.com/Tyrrrz/YoutubeDownloader/blob/e045cf0b315024d903cc003d9a349ffbd328ff8b/YoutubeDownloader.Core/YoutubeAuthHttpHandler.cs#L21
as the cookies already have the domain information.
Thanks guys, I'll check later today
Same issue here, hope it can be fixed :)
This is fixed. You might have to delete your Settings.dat
file if you run into exceptions during startup (shouldn't happen though).
Version
1.10.0
Details
When I try to authenticate, this error message occurs once the WebView window gets closed:
If I close that error message window, it pops up one more time and when I close that new window, the program crashes.
Steps to reproduce
-Try to authenticate