[ie/facebook] Support more groups URLs (#11576)
[yt-dlp3.git] / yt_dlp / extractor / moview.py
blob560154e1a1e2c6c0e04f2a631292394518ee327d
1 from .jixie import JixieBaseIE
4 class MoviewPlayIE(JixieBaseIE):
5 _VALID_URL = r'https?://www\.moview\.id/play/\d+/(?P<id>[\w-]+)'
6 _TESTS = [
8 # drm hls, only use direct link
9 'url': 'https://www.moview.id/play/174/Candy-Monster',
10 'info_dict': {
11 'id': '146182',
12 'ext': 'mp4',
13 'display_id': 'Candy-Monster',
14 'uploader_id': 'Mo165qXUUf',
15 'duration': 528.2,
16 'title': 'Candy Monster',
17 'description': 'Mengapa Candy Monster ingin mengambil permen Chloe?',
18 'thumbnail': 'https://video.jixie.media/1034/146182/146182_1280x720.jpg',
20 }, {
21 # non-drm hls
22 'url': 'https://www.moview.id/play/75/Paris-Van-Java-Episode-16',
23 'info_dict': {
24 'id': '28210',
25 'ext': 'mp4',
26 'duration': 2595.666667,
27 'display_id': 'Paris-Van-Java-Episode-16',
28 'uploader_id': 'Mo165qXUUf',
29 'thumbnail': 'https://video.jixie.media/1003/28210/28210_1280x720.jpg',
30 'description': 'md5:2a5e18d98eef9b39d7895029cac96c63',
31 'title': 'Paris Van Java Episode 16',
36 def _real_extract(self, url):
37 display_id = self._match_id(url)
38 webpage = self._download_webpage(url, display_id)
40 video_id = self._search_regex(
41 r'video_id\s*=\s*"(?P<video_id>[^"]+)', webpage, 'video_id')
43 return self._extract_data_from_jixie_id(display_id, video_id, webpage)