[ie/wistia] Support password-protected videos (#11100)
[yt-dlp3.git] / yt_dlp / extractor / lumni.py
blob8c26f5b472e5b1fe59614a45cc7ea3f2048fe0f5
1 from .francetv import FranceTVBaseInfoExtractor
4 class LumniIE(FranceTVBaseInfoExtractor):
5 _VALID_URL = r'https?://(?:www\.)?lumni\.fr/video/(?P<id>[\w-]+)'
6 _TESTS = [{
7 'url': 'https://www.lumni.fr/video/l-homme-et-son-environnement-dans-la-revolution-industrielle',
8 'md5': '960e8240c4f2c7a20854503a71e52f5e',
9 'info_dict': {
10 'id': 'd2b9a4e5-a526-495b-866c-ab72737e3645',
11 'ext': 'mp4',
12 'title': "L'homme et son environnement dans la révolution industrielle - L'ère de l'homme",
13 'thumbnail': 'https://assets.webservices.francetelevisions.fr/v1/assets/images/a7/17/9f/a7179f5f-63a5-4e11-8d4d-012ab942d905.jpg',
14 'duration': 230,
18 def _real_extract(self, url):
19 display_id = self._match_id(url)
20 webpage = self._download_webpage(url, display_id)
21 video_id = self._html_search_regex(
22 r'<div[^>]+data-factoryid\s*=\s*["\']([^"\']+)', webpage, 'video id')
23 return self._make_url_result(video_id, url=url)