- r"addVariable\('file','([^']+)'\);", webpage, u'video url')
+ r"addVariable\('file','([^']+)'\);", webpage, 'video url', default=None)
+ if video_url:
+ info_dict = {
+ 'formats': [{
+ 'url': video_url,
+ }],
+ }
+ else:
+ entries = self._parse_html5_media_entries(url, webpage, video_id)
+ if entries:
+ info_dict = entries[0]
+ else:
+ info_dict = self._extract_jwplayer_data(
+ webpage, video_id, require_title=False)