* If the service is unable to handle the request.
* @throws IOException error sending request or reading the feed.
*/
private static void printVideoFeed(YouTubeService service, String feedUrl,
boolean showCommentsAndResponses) throws IOException, ServiceException {
VideoFeed videoFeed = service.getFeed(new URL(feedUrl), VideoFeed.class);
String title = videoFeed.getTitle().getPlainText();
if (showCommentsAndResponses) {
title += " with comments and responses";
}
printUnderlined(title);
List<VideoEntry> videoEntries = videoFeed.getEntries();
if (videoEntries.size() == 0) {
System.out.println("This feed contains no entries.");
return;
}
int count = 1;