]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/bloomberg.py
d18bc7e0ca5c9d5556d60e354e8b0d9f351e89f7
3 from .common
import InfoExtractor
4 from .ooyala
import OoyalaIE
7 class BloombergIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://www\.bloomberg\.com/video/(?P<name>.+?)\.html'
11 u
'url': u
'http://www.bloomberg.com/video/shah-s-presentation-on-foreign-exchange-strategies-qurhIVlJSB6hzkVi229d8g.html',
12 u
'file': u
'12bzhqZTqQHmmlA8I-i0NpzJgcG5NNYX.mp4',
14 u
'title': u
'Shah\'s Presentation on Foreign-Exchange Strategies',
15 u
'description': u
'md5:abc86e5236f9f0e4866c59ad36736686',
18 # Requires ffmpeg (m3u8 manifest)
19 u
'skip_download': True,
23 def _real_extract(self
, url
):
24 mobj
= re
.match(self
._VALID
_URL
, url
)
25 name
= mobj
.group('name')
26 webpage
= self
._download
_webpage
(url
, name
)
27 ooyala_code
= self
._search
_regex
(r
'<source src="http://player.ooyala.com/player/[^/]+/([^".]+)', webpage
, u
'ooyala url')
28 return OoyalaIE
._build
_url
_result
(ooyala_code
)