aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/bloomberg.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/bloomberg.py')
-rw-r--r--youtube_dl/extractor/bloomberg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bloomberg.py b/youtube_dl/extractor/bloomberg.py
index df2cff81c..2415ce403 100644
--- a/youtube_dl/extractor/bloomberg.py
+++ b/youtube_dl/extractor/bloomberg.py
@@ -24,5 +24,7 @@ class BloombergIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url)
name = mobj.group('name')
webpage = self._download_webpage(url, name)
- ooyala_url = self._twitter_search_player(webpage)
- return self.url_result(ooyala_url, OoyalaIE.ie_key())
+ embed_code = self._search_regex(
+ r'<source src="https?://[^/]+/[^/]+/[^/]+/([^/]+)', webpage,
+ 'embed code')
+ return OoyalaIE._build_url_result(embed_code)