diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-02-09 14:11:45 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-02-09 14:11:45 +0100 |
commit | 524c2c716a55d16b3cf4f2ed344e3a063bb63ce8 (patch) | |
tree | 0e7f85fb75818465baf87caaff9ce953da0f1163 /youtube_dl | |
parent | b542d4bbd7c620e35b2d61cf11827665372d8ff5 (diff) |
[bloomberg] Fix extraction of ooyala embed code
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/bloomberg.py | 6 |
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) |