Get the most recent vides from YT api

This commit is contained in:
hak8or 2017-09-03 03:24:00 -04:00
parent 28de8f1279
commit 5668413dfb
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ namespace YTManager.Tasks
// Get channel videos from youtube.
var query = youtubeService.Search.List("snippet");
query.ChannelId = ch.YTChannelID;
query.Order = SearchResource.ListRequest.OrderEnum.Date;
query.MaxResults = 50;
var response = query.Execute();