* If the service is unable to handle the request.
* @throws IOException error sending request or reading the feed.
*/
private static void printPlaylistsFeed(YouTubeService service, String feedUrl,
boolean showPlaylistContents) throws IOException, ServiceException {
PlaylistLinkFeed playlistLinkFeed = service.getFeed(new URL(feedUrl),
PlaylistLinkFeed.class);
String title = playlistLinkFeed.getTitle().getPlainText();
if (showPlaylistContents) {
title += " with playlist content.";
}
printUnderlined(title);
List<PlaylistLinkEntry> playlistEntries = playlistLinkFeed.getEntries();
int count = 1;
for (PlaylistLinkEntry pe : playlistEntries) {
printPlaylistEntry("(Playlist #" + count + ")", pe, false);
count++;
}