omansak / libvideo

A lightweight .NET library to download YouTube videos.
BSD 2-Clause "Simplified" License
553 stars 164 forks source link

Try to download the video with getallvideos, but got 503 error. #268

Closed fema3832 closed 1 year ago

fema3832 commented 1 year ago

When i try to downlaod the best quality video with libvideo with a c# .net code:

 IEnumerable<YouTubeVideo> videos = youtube.GetAllVideos(Url);
 video = videos.OrderByDescending(o => o.Resolution).ThenByDescending(o => o.Fps).First();
 File.WriteAllBytes(videoPath, video.GetBytes());

I got an error: System.Net.Http.HttpRequestException: Response status code does indicate success: 503 (Service Unavaliable) uqmVXJGnt6

mohammadjouhari commented 1 year ago

is the issue resolved I am geting 503 in youtube.GetVideo(); any Reason ? No excpetion is being thrown ? why >?

omansak commented 1 year ago

270