- # Todo: add medium format
- video_url = video_url.replace(video_id, 'large/' + video_id)
- if "vimeo" in video_url:
- video_url = video_url.replace('large/' + video_id, video_id)
- video_url = video_url.replace('http://stream.gamekings.tv/', '')
+ # Check if a YouTube embed is used
+ if YoutubeIE.suitable(playlist_id):
+ return self.url_result(playlist_id, ie='Youtube')
+
+ playlist = self._download_xml(
+ 'http://www.gamekings.tv/wp-content/themes/gk2010/rss_playlist.php?id=%s' % playlist_id,
+ video_id)
+
+ NS_MAP = {
+ 'jwplayer': 'http://rss.jwpcdn.com/'
+ }
+
+ item = playlist.find('./channel/item')
+
+ thumbnail = xpath_text(item, xpath_with_ns('./jwplayer:image', NS_MAP), 'thumbnail')
+ video_url = item.find(xpath_with_ns('./jwplayer:source', NS_MAP)).get('file')