1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
6 class AlJazeeraIE(InfoExtractor
):
7 _VALID_URL
= r
'http://www\.aljazeera\.com/programmes/.*?/(?P<id>[^/]+)\.html'
10 'url': 'http://www.aljazeera.com/programmes/the-slum/2014/08/deliverance-201482883754237240.html',
12 'id': '3792260579001',
14 'title': 'The Slum - Episode 1: Deliverance',
15 'description': 'As a birth attendant advocating for family planning, Remy is on the frontline of Tondo\'s battle with overcrowding.',
16 'uploader': 'Al Jazeera English',
18 'add_ie': ['Brightcove'],
19 'skip': 'Not accessible from Travis CI server',
22 def _real_extract(self
, url
):
23 program_name
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, program_name
)
25 brightcove_id
= self
._search
_regex
(
26 r
'RenderPagesVideo\(\'(.+?
)\'', webpage, 'brightcove
id')
32 'playerKey
=AQ~~
%2CAAAAmtVJIFk~
%2CTVGOQ5ZTwJbeMWnq5d_H4MOM57xfzApc
'
33 '&%40videoPlayer
={0}
'.format(brightcove_id)
35 'ie_key
': 'Brightcove
',