Hi
I'm using below code snippet to fetch Youtube video titles, when you enter a query into a listbox, and press the search button:
But what i get is like 50 results, while when i search the same query on YT, i get 1000s of results. What's the wrong with my code?Code:private void button_search_Click(object sender, EventArgs e) { YouTubeQuery query = new YouTubeQuery(YouTubeQuery.DefaultVideoUri); //order results by the number of views (most viewed first) //query.OrderBy = "viewCount"; query.Query = textBox_query.Text; // get query from the text box. ex. "Joe Rogan" query.SafeSearch = YouTubeQuery.SafeSearchValues.None; Feed<Video> videoFeed = request.Get<Video>(query); printVideoFeed(videoFeed); } // Enumerate feeds void printVideoFeed(Feed<Video> feed) { foreach (Video entry in feed.Entries) { printVideoEntry(entry); } } // Put the video titles into the listbox void printVideoEntry(Video video) { listBox_result.Items.Add(video.Title); }
Thanks for any help.