]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bloomberg] Fix extraction of ooyala embed code
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 9 Feb 2014 13:11:45 +0000 (14:11 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 9 Feb 2014 13:11:45 +0000 (14:11 +0100)
youtube_dl/extractor/bloomberg.py

index df2cff81c603b5d85d0f6c82a0f36af509002301..2415ce4030521940a066af58796e438f0adc955a 100644 (file)
@@ -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)