]>
Raphaël G. Git Repositories - youtubedl/blob - youtube_dl/extractor/vodplatform.py
239644340384b60c8e1a80d40b50cabbd0fd2c9e
2 from __future__
import unicode_literals
4 from . common
import InfoExtractor
5 from .. utils
import unescapeHTML
8 class VODPlatformIE ( InfoExtractor
):
9 _VALID_URL
= r
'https?://(?:www\.)?vod-platform\.net/[eE]mbed/(?P<id>[^/?#]+)'
11 # from http://www.lbcgroup.tv/watch/chapter/29143/52844/%D8%A7%D9%84%D9%86%D8%B5%D8%B1%D8%A9-%D9%81%D9%8A-%D8%B6%D9%8A%D8%A7%D9%81%D8%A9-%D8%A7%D9%84%D9%80-cnn/ar
12 'url' : 'http://vod-platform.net/embed/RufMcytHDolTH1MuKHY9Fw' ,
13 'md5' : '1db2b7249ce383d6be96499006e951fc' ,
15 'id' : 'RufMcytHDolTH1MuKHY9Fw' ,
17 'title' : 'LBCi News_ النصرة في ضيافة الـ "سي.أن.أن"' ,
21 def _real_extract ( self
, url
):
22 video_id
= self
._ match
_ id
( url
)
23 webpage
= self
._ download
_ webpage
( url
, video_id
)
25 title
= unescapeHTML ( self
._ og
_ search
_ title
( webpage
))
26 hidden_inputs
= self
._ hidden
_ inputs
( webpage
)
28 formats
= self
._ extract
_ wowza
_ formats
(
29 hidden_inputs
. get ( 'HiddenmyhHlsLink' ) or hidden_inputs
[ 'HiddenmyDashLink' ], video_id
, skip_protocols
=[ 'f4m' , 'smil' ])
30 self
._ sort
_ formats
( formats
)
35 'thumbnail' : hidden_inputs
. get ( 'HiddenThumbnail' ) or self
._ og
_ search
_ thumbnail
( webpage
),