]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/viceland.py
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/trapped/588a70d0dba8a16007de7316',
12 'id': '588a70d0dba8a16007de7316',
14 'title': 'TRAPPED (Series Trailer)',
15 'description': 'md5:7a8e95c2b6cd86461502a2845e581ccf',
17 'timestamp': 1485474122,
18 'upload_date': '20170126',
19 'uploader_id': '57a204098cb727dec794c6a3',
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
)