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)