diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-03-03 23:07:29 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-03-03 23:08:43 +0700 |
commit | 86c8cfc5558fd73e2c8bd62ea256200ce30e017e (patch) | |
tree | 21b7f81c296de8af56947223d3d07672932af879 /youtube_dl/extractor/viceland.py | |
parent | c01db237b53904e1d2bd41678a932539a063dd88 (diff) | |
download | youtube-dl-86c8cfc5558fd73e2c8bd62ea256200ce30e017e.tar.xz |
[vice] Fix extraction and rework extractors (closes #11101, closes #13019, closes #13622, closes #13778)
Diffstat (limited to 'youtube_dl/extractor/viceland.py')
-rw-r--r-- | youtube_dl/extractor/viceland.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/youtube_dl/extractor/viceland.py b/youtube_dl/extractor/viceland.py deleted file mode 100644 index bd60235c8..000000000 --- a/youtube_dl/extractor/viceland.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 -from __future__ import unicode_literals - -import re - -from .vice import ViceBaseIE - - -class VicelandIE(ViceBaseIE): - _VALID_URL = r'https?://(?:www\.)?viceland\.com/(?P<locale>[^/]+)/video/[^/]+/(?P<id>[a-f0-9]+)' - _TEST = { - 'url': 'https://www.viceland.com/en_us/video/trapped/588a70d0dba8a16007de7316', - 'info_dict': { - 'id': '588a70d0dba8a16007de7316', - 'ext': 'mp4', - 'title': 'TRAPPED (Series Trailer)', - 'description': 'md5:7a8e95c2b6cd86461502a2845e581ccf', - 'age_limit': 14, - 'timestamp': 1485474122, - 'upload_date': '20170126', - 'uploader_id': '57a204098cb727dec794c6a3', - 'uploader': 'Viceland', - }, - 'params': { - # m3u8 download - 'skip_download': True, - }, - 'add_ie': ['UplynkPreplay'], - 'skip': '404', - } - _PREPLAY_HOST = 'www.viceland' - - def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') - locale = mobj.group('locale') - webpage = self._download_webpage(url, video_id) - return self._extract_preplay_video(url, locale, webpage) |