Closed johanolofsson72 closed 1 week ago
This problem started around June or July this year, and it will only happen when I put the code on the server, have tried Swedish and Norwegian servers, when I run it locally there is no problem but on the servers it requires login?
Hi @johanolofsson72 , you check this issue may be help to you,
or you can authenticate with an throw-away account and try running it.
Duplicate of #794
Version
6.4.3
Platform
.NET9
Steps to reproduce
var youtube = new YoutubeClient(); var streamManifest = await youtube.Videos.Streams.GetManifestAsync("https://www.youtube.com/watch?v= djV11Xbc914"); var streamInfo = streamManifest.GetMuxedStreams().TryGetWithHighestVideoQuality(); if (streamInfo is null) { // Available streams vary depending on the video and it's possible // there may not be any muxed streams at all. // See the readme to learn how to handle adaptive streams. Console.Error.WriteLine("This video has no muxed streams."); return string.Empty; } return streamInfo.Url;
Details
YoutubeExplode.Exceptions.VideoUnplayableException: Video 'djV11Xbc914' is unplayable. Reason: 'Please sign in'. at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(VideoId videoId, PlayerResponse playerResponse, CancellationToken cancellationToken) in //YoutubeExplode/Videos/Streams/StreamClient.cs:line 212 at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(VideoId videoId, CancellationToken cancellationToken) in //YoutubeExplode/Videos/Streams/StreamClient.cs:line 276 at YoutubeExplode.Videos.Streams.StreamClient.GetManifestAsync(VideoId videoId, CancellationToken cancellationToken) in /_/YoutubeExplode/Videos/Streams/StreamClient.cs:line 292
Checklist