- video_url = self._search_regex(
- r's1\.addVariable\("file",\s*"([^"]+)"\);', webpage, 'video URL')
- if YoutubeIE.suitable(video_url):
- self.to_screen('Found YouTube video')
- return {
- '_type': 'url',
- 'url': video_url,
- 'ie_key': YoutubeIE.ie_key(),
- }
-
- return {
+
+ youtube_id = self._search_regex(
+ (r"videoId\s*:\s*[\"']([0-9A-Za-z_-]{11})[\"']",
+ r'data-id=["\']([0-9A-Za-z_-]{11})'),
+ webpage, 'video URL', default=None)
+ if youtube_id:
+ return self.url_result(youtube_id, YoutubeIE.ie_key())
+
+ info_dict = self._extract_jwplayer_data(
+ webpage, video_id, require_title=False)
+
+ info_dict.update({