Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 14th, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. is there a way to get the YouTubeVideoEntry from a YouTubePlayListVideoEntry in the python gdata youtube client?
  2. playlist_feed = api.GetYouTubePlaylistFeed('http://gdata.youtube.com/feeds/api/playlists/E6DE6EC9A373AF57')
  3. first_video = playlist_feed.entry[0]
  4. entry_uri = [l.href for l in first_video.link if l.rel == 'related'][0]
  5. video_entry = api.GetYouTubeVideoEntry(entry_uri)
  6. print video_entry.GetSwfUrl()
  7.        
  8. http://www.youtube.com/v/ADos_xW4_J0?version=3&f=videos&c=myid&d=AZI70qgwnzygE0LbSLCTnAwO88HsQjpE1a8d1GxQnGDm&app=youtube_gdata