Skip to content

Question: How to tell the program to download the highest resolution #207

Answered by omansak
busdriverflix asked this question in Q&A
Discussion options

You must be logged in to vote

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));

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@busdriverflix
Comment options

@marnagy
Comment options

Answer selected by omansak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants