]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/bloomberg.py
debian/NEWS: Add link to my webpage to give more details.
[youtubedl] / youtube_dl / extractor / bloomberg.py
index d18bc7e0ca5c9d5556d60e354e8b0d9f351e89f7..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)
         mobj = re.match(self._VALID_URL, url)
         name = mobj.group('name')
         webpage = self._download_webpage(url, name)
-        ooyala_code = self._search_regex(r'<source src="http://player.ooyala.com/player/[^/]+/([^".]+)', webpage, u'ooyala url')
-        return OoyalaIE._build_url_result(ooyala_code)
+        embed_code = self._search_regex(
+            r'<source src="https?://[^/]+/[^/]+/[^/]+/([^/]+)', webpage,
+            'embed code')
+        return OoyalaIE._build_url_result(embed_code)