[ie/wistia] Support password-protected videos (#11100)
[yt-dlp3.git] / yt_dlp / extractor / kth.py
blob76899fdb8c9d67ddcb22e4e31314c0b0eebf0fa9
1 from .common import InfoExtractor
2 from ..utils import smuggle_url
5 class KTHIE(InfoExtractor):
6 _VALID_URL = r'https?://play\.kth\.se/(?:[^/]+/)+(?P<id>[a-z0-9_]+)'
7 _TEST = {
8 'url': 'https://play.kth.se/media/Lunch+breakA+De+nya+aff%C3%A4rerna+inom+Fordonsdalen/0_uoop6oz9',
9 'md5': 'd83ada6d00ca98b73243a88efe19e8a6',
10 'info_dict': {
11 'id': '0_uoop6oz9',
12 'ext': 'mp4',
13 'title': 'md5:bd1d6931facb6828762a33e6ce865f37',
14 'thumbnail': 're:https?://.+/thumbnail/.+',
15 'duration': 3516,
16 'timestamp': 1647345358,
17 'upload_date': '20220315',
18 'uploader_id': 'md5:0ec23e33a89e795a4512930c8102509f',
22 def _real_extract(self, url):
23 video_id = self._match_id(url)
24 return self.url_result(
25 smuggle_url(f'kaltura:308:{video_id}', {
26 'service_url': 'https://api.kaltura.nordu.net'}),
27 'Kaltura')