youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 524c2c716a55d16b3cf4f2ed344e3a063bb63ce8
parent b542d4bbd7c620e35b2d61cf11827665372d8ff5
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Sun,  9 Feb 2014 14:11:45 +0100

[bloomberg] Fix extraction of ooyala embed code

Diffstat:
Myoutube_dl/extractor/bloomberg.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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)