|
|
@ -31,8 +31,13 @@ class MotorsportIE(InfoExtractor):
|
|
|
|
webpage = self._download_webpage(url, display_id)
|
|
|
|
webpage = self._download_webpage(url, display_id)
|
|
|
|
|
|
|
|
|
|
|
|
iframe_path = self._html_search_regex(
|
|
|
|
iframe_path = self._html_search_regex(
|
|
|
|
r'<iframe id="player_iframe"[^>]+src="([^"]+)"', webpage,
|
|
|
|
r'<iframe id="player_iframe"[^>]+src="([^"]+)"', webpage, 'iframe path', default=None)
|
|
|
|
'iframe path')
|
|
|
|
|
|
|
|
|
|
|
|
if iframe_path is None:
|
|
|
|
|
|
|
|
iframe_path = self._html_search_regex(
|
|
|
|
|
|
|
|
r'<iframe [^>]*\bsrc="(https://motorsport\.tv/embed/[^"]+)', webpage, 'embed iframe path')
|
|
|
|
|
|
|
|
return self.url_result(iframe_path)
|
|
|
|
|
|
|
|
|
|
|
|
iframe = self._download_webpage(
|
|
|
|
iframe = self._download_webpage(
|
|
|
|
compat_urlparse.urljoin(url, iframe_path), display_id,
|
|
|
|
compat_urlparse.urljoin(url, iframe_path), display_id,
|
|
|
|
'Downloading iframe')
|
|
|
|
'Downloading iframe')
|
|
|
|