]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/bloomberg.py
debian/control: Package complies with policy 3.9.5.
[youtubedl] / youtube_dl / extractor / bloomberg.py
index 755d9c9ef2a093289df91409097320908ea06df7..2415ce4030521940a066af58796e438f0adc955a 100644 (file)
@@ -1,6 +1,7 @@
 import re
 
 from .common import InfoExtractor
+from .ooyala import OoyalaIE
 
 
 class BloombergIE(InfoExtractor):
@@ -23,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._og_search_video_url(webpage)
-        return self.url_result(ooyala_url, ie='Ooyala')
+        embed_code = self._search_regex(
+            r'<source src="https?://[^/]+/[^/]+/[^/]+/([^/]+)', webpage,
+            'embed code')
+        return OoyalaIE._build_url_result(embed_code)