- # Todo: add medium format
- video_url = video_url.replace(video_id, 'large/' + video_id)
- if not (self._is_valid_url(video_url, video_id)):
- video_url = video_url.replace('large/' + video_id, video_id)
- video_url = video_url.replace('http://stream.gamekings.tv/', '')
+ 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')