[ie/wistia] Support password-protected videos (#11100)
[yt-dlp3.git] / yt_dlp / extractor / kompas.py
blob2ef076c1ef004a15853832e45d7ab48f7c8e0c8b
1 from .jixie import JixieBaseIE
4 class KompasVideoIE(JixieBaseIE):
5 _VALID_URL = r'https?://video\.kompas\.com/\w+/(?P<id>\d+)/(?P<slug>[\w-]+)'
6 _TESTS = [{
7 'url': 'https://video.kompas.com/watch/164474/kim-jong-un-siap-kirim-nuklir-lawan-as-dan-korsel',
8 'info_dict': {
9 'id': '164474',
10 'ext': 'mp4',
11 'title': 'Kim Jong Un Siap Kirim Nuklir Lawan AS dan Korsel',
12 'description': 'md5:262530c4fb7462398235f9a5dba92456',
13 'uploader_id': '9262bf2590d558736cac4fff7978fcb1',
14 'display_id': 'kim-jong-un-siap-kirim-nuklir-lawan-as-dan-korsel',
15 'duration': 85.066667,
16 'categories': ['news'],
17 'thumbnail': 'https://video.jixie.media/1001/164474/164474_1280x720.jpg',
18 'tags': 'count:9',
22 def _real_extract(self, url):
23 video_id, display_id = self._match_valid_url(url).group('id', 'slug')
24 webpage = self._download_webpage(url, display_id)
26 return self._extract_data_from_jixie_id(display_id, video_id, webpage)