]>
Raphaël G. Git Repositories - youtubedl/blob - youtube_dl/extractor/vodplatform.py
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|embed\.kwikmotion\.com)/[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_ النصرة في ضيافة الـ "سي.أن.أن"' ,
20 'url' : 'http://embed.kwikmotion.com/embed/RufMcytHDolTH1MuKHY9Fw' ,
21 'only_matching' : True ,
24 def _real_extract ( self
, url
):
25 video_id
= self
._ match
_ id
( url
)
26 webpage
= self
._ download
_ webpage
( url
, video_id
)
28 title
= unescapeHTML ( self
._ og
_ search
_ title
( webpage
))
29 hidden_inputs
= self
._ hidden
_ inputs
( webpage
)
31 formats
= self
._ extract
_ wowza
_ formats
(
32 hidden_inputs
. get ( 'HiddenmyhHlsLink' ) or hidden_inputs
[ 'HiddenmyDashLink' ], video_id
, skip_protocols
=[ 'f4m' , 'smil' ])
33 self
._ sort
_ formats
( formats
)
38 'thumbnail' : hidden_inputs
. get ( 'HiddenThumbnail' ) or self
._ og
_ search
_ thumbnail
( webpage
),