[bloomberg] Fix extraction of ooyala embed code

pull/2/head
Jaime Marquínez Ferrándiz 11 years ago
parent b542d4bbd7
commit 524c2c716a

@ -24,5 +24,7 @@ class BloombergIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)
name = mobj.group('name') name = mobj.group('name')
webpage = self._download_webpage(url, name) webpage = self._download_webpage(url, name)
ooyala_url = self._twitter_search_player(webpage) embed_code = self._search_regex(
return self.url_result(ooyala_url, OoyalaIE.ie_key()) r'<source src="https?://[^/]+/[^/]+/[^/]+/([^/]+)', webpage,
'embed code')
return OoyalaIE._build_url_result(embed_code)

Loading…
Cancel
Save