info_response = self._download_webpage(info_request, video_id, u'Downloading info webpage')
if info_response is None:
raise ExtractorError(u'Unable to extract the media url')
- final_url = (info_response.split('&')[0]).split('=')[1]
+ (final_url, thumbnail_url) = map(lambda x: x.split('=')[1], info_response.split('&'))
return [{
- 'id': video_id,
- 'url': final_url,
- 'ext': ext,
- 'title': title,
+ 'id': video_id,
+ 'url': final_url,
+ 'ext': ext,
+ 'title': title,
+ 'thumbnail': thumbnail_url,
}]
def gen_extractors():