]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/viceland.py
0eff055a6e5ce2ced15a618c82cadbf2c6c47a4a
2 from __future__
import unicode_literals
4 from . vice
import ViceBaseIE
7 class VicelandIE ( ViceBaseIE
):
8 _VALID_URL
= r
'https?://(?:www\.)?viceland\.com/[^/]+/video/[^/]+/(?P<id>[a-f0-9]+)'
10 'url' : 'https://www.viceland.com/en_us/video/cyberwar-trailer/57608447973ee7705f6fbd4e' ,
12 'id' : '57608447973ee7705f6fbd4e' ,
14 'title' : 'CYBERWAR (Trailer)' ,
15 'description' : 'Tapping into the geopolitics of hacking and surveillance, Ben Makuch travels the world to meet with hackers, government officials, and dissidents to investigate the ecosystem of cyberwarfare.' ,
17 'timestamp' : 1466008539 ,
18 'upload_date' : '20160615' ,
20 'uploader' : 'Viceland' ,
24 'skip_download' : True ,
26 'add_ie' : [ 'UplynkPreplay' ],
28 _PREPLAY_HOST
= 'www.viceland'
30 def _real_extract ( self
, url
):
31 video_id
= self
._ match
_ id
( url
)
32 webpage
= self
._ download
_ webpage
( url
, video_id
)
33 return self
._ extract
_ preplay
_ video
( url
, webpage
)