]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/bloomberg.py
3666a780b9209da0125d319e3851f40a05bc4e4f
   3 from .common 
import InfoExtractor
 
   6 class BloombergIE(InfoExtractor
): 
   7     _VALID_URL 
= r
'https?://www\.bloomberg\.com/video/(?P<name>.+?).html' 
  10         u
'url': u
'http://www.bloomberg.com/video/shah-s-presentation-on-foreign-exchange-strategies-qurhIVlJSB6hzkVi229d8g.html', 
  11         u
'file': u
'12bzhqZTqQHmmlA8I-i0NpzJgcG5NNYX.mp4', 
  13             u
'title': u
'Shah\'s Presentation on Foreign-Exchange Strategies', 
  14             u
'description': u
'md5:abc86e5236f9f0e4866c59ad36736686', 
  17             # Requires ffmpeg (m3u8 manifest) 
  18             u
'skip_download': True, 
  22     def _real_extract(self
, url
): 
  23         mobj 
= re
.match(self
._VALID
_URL
, url
) 
  24         name 
= mobj
.group('name') 
  25         webpage 
= self
._download
_webpage
(url
, name
) 
  26         ooyala_url 
= self
._og
_search
_video
_url
(webpage
) 
  27         return self
.url_result(ooyala_url
, ie
='Ooyala')