Tyrrrz / YoutubeDownloader

Downloads videos and playlists from YouTube
MIT License
8.7k stars 1.19k forks source link

Some videos cannot be downloaded due to 403 Forbidden error #469

Closed Jason14159 closed 3 weeks ago

Jason14159 commented 3 months ago

Version

1.12.2

Platform

windows 11

Steps to reproduce

System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at YoutubeExplode.Videos.Streams.StreamClient.TryGetContentLengthAsync(IStreamData streamData, String url, CancellationToken cancellationToken) in //YoutubeExplode/Videos/Streams/StreamClient.cs:line 63 at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(IEnumerable`1 streamDatas, CancellationToken cancellationToken)+MoveNext() in //YoutubeExplode/Videos/Streams/StreamClient.cs:line 114 at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(IEnumerable1 streamDatas, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult() at YoutubeExplode.Utils.Extensions.AsyncCollectionExtensions.ToListAsync[T](IAsyncEnumerable1 source) in //YoutubeExplode/Utils/Extensions/AsyncCollectionExtensions.cs:line 49 at YoutubeExplode.Utils.Extensions.AsyncCollectionExtensions.ToListAsync[T](IAsyncEnumerable`1 source) in //YoutubeExplode/Utils/Extensions/AsyncCollectionExtensions.cs:line 49 at YoutubeExplode.Videos.Streams.StreamClient.GetStreamInfosAsync(VideoId videoId, PlayerResponse playerResponse, CancellationToken cancellationToken) in //YoutubeExplode/Videos/Streams/StreamClient.cs:line 218 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 at YoutubeDownloader.Core.Downloading.VideoDownloader.GetDownloadOptionsAsync(VideoId videoId, CancellationToken cancellationToken) in /home/runner/work/YoutubeDownloader/YoutubeDownloader/YoutubeDownloader.Core/Downloading/VideoDownloader.cs:line 25 at YoutubeDownloader.Core.Downloading.VideoDownloader.GetBestDownloadOptionAsync(VideoId videoId, VideoDownloadPreference preference, CancellationToken cancellationToken) in /home/runner/work/YoutubeDownloader/YoutubeDownloader/YoutubeDownloader.Core/Downloading/VideoDownloader.cs:line 35 at YoutubeDownloader.ViewModels.Components.DashboardViewModel.EnqueueDownload(DownloadViewModel download, Int32 position) in /home/runner/work/YoutubeDownloader/YoutubeDownloader/YoutubeDownloader/ViewModels/Components/DashboardViewModel.cs:line 101

Details

When downloading a playlist, this error occurs for some of the videos. Some can be downloaded and some cannot.

Checklist

Tyrrrz commented 3 weeks ago

Superseded by #513