Console.WriteLine();
Console.Write("Enter your video's ID: ");
string uri = Console.ReadLine();
var youTube = YouTube.Default; // starting point for YouTube actions
var videoInfos = youTube.GetAllVideosAsync(uri).GetAwaiter().GetResult();
var maxResolution = videoInfos.First(i => i.Resolution == videoInfos.Max(j => j.Resolution));
var video = youTube.GetVideo(uri); // gets a Video object with info about the video
File.WriteAllBytes(@"D:\" + video.FullName, video.GetBytes());