Package com.google.gdata.data.youtube

Examples of com.google.gdata.data.youtube.PlaylistLinkFeed


    try {
      URL feedUrl = new URL(PLAYLIST_FEED_URL);

      while (feedUrl != null) {
        PlaylistLinkFeed playlistFeed = service.getFeed(feedUrl, PlaylistLinkFeed.class);
        playlistEntries.addAll(playlistFeed.getEntries());
       
        Link nextLink = playlistFeed.getNextLink();
        if (nextLink == null) {
          feedUrl = null;
        } else {
          feedUrl = new URL(nextLink.getHref());
        }
View Full Code Here


      return;
    }


    PlaylistLinkFeed playlistLinkFeed = service.getFeed(new URL(feedUrl),
        PlaylistLinkFeed.class);
    String title = playlistLinkFeed.getTitle().getPlainText();

    printUnderlined(title);
    List<PlaylistLinkEntry> playlistEntries = playlistLinkFeed.getEntries();
    int count = 1;
    for (PlaylistLinkEntry pe : playlistEntries) {
      printPlaylistEntry("(Playlist #" + count + ")", pe, false);
      count++;
    }
View Full Code Here

   *                     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++;
    }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.youtube.PlaylistLinkFeed

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.