Question: How to tell the program to download the highest resolution #207
-
Hi, I'm new to programming and as a starter project I wanted to make a YouTube Downloader. I want to use this library, but I have one big problem. I just can't find how to select resolutions. In the document is described how to get info about a video, even the resolution, but not how to tell the programm to download the highest resolution (or I'm just blind and can't see it). I googled a lot to find a solution to this, but doesn't matter what I do, when I launch my program and start downloading a video, it's always just in 360p. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
you can use like in this doc. https://github.com/omansak/libvideo/blob/master/docs/README.md#advanced var youTube = YouTube.Default; // starting point for YouTube actions
var videoInfos = youTube.GetAllVideosAsync(link).GetAwaiter().GetResult();
var maxResolution = videoInfos.First(i => i.Resolution == videoInfos.Max(j => j.Resolution)); |
Beta Was this translation helpful? Give feedback.
you can use like in this doc.
https://github.com/omansak/libvideo/blob/master/docs/README.md#advanced