[ie/twitter:spaces] Support video spaces (#10789)
[yt-dlp3.git] / yt_dlp / extractor / dreisat.py
blob4b0a269b986670fa5748d34c3d30243c28f042e1
1 from .zdf import ZDFIE
4 class DreiSatIE(ZDFIE): # XXX: Do not subclass from concrete IE
5 IE_NAME = '3sat'
6 _VALID_URL = r'https?://(?:www\.)?3sat\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)\.html'
7 _TESTS = [{
8 # Same as https://www.zdf.de/dokumentation/ab-18/10-wochen-sommer-102.html
9 'url': 'https://www.3sat.de/film/ab-18/10-wochen-sommer-108.html',
10 'md5': '0aff3e7bc72c8813f5e0fae333316a1d',
11 'info_dict': {
12 'id': '141007_ab18_10wochensommer_film',
13 'ext': 'mp4',
14 'title': 'Ab 18! - 10 Wochen Sommer',
15 'description': 'md5:8253f41dc99ce2c3ff892dac2d65fe26',
16 'duration': 2660,
17 'timestamp': 1608604200,
18 'upload_date': '20201222',
20 }, {
21 'url': 'https://www.3sat.de/gesellschaft/schweizweit/waidmannsheil-100.html',
22 'info_dict': {
23 'id': '140913_sendung_schweizweit',
24 'ext': 'mp4',
25 'title': 'Waidmannsheil',
26 'description': 'md5:cce00ca1d70e21425e72c86a98a56817',
27 'timestamp': 1410623100,
28 'upload_date': '20140913',
30 'params': {
31 'skip_download': True,
33 }, {
34 # Same as https://www.zdf.de/filme/filme-sonstige/der-hauptmann-112.html
35 'url': 'https://www.3sat.de/film/spielfilm/der-hauptmann-100.html',
36 'only_matching': True,
37 }, {
38 # Same as https://www.zdf.de/wissen/nano/nano-21-mai-2019-102.html, equal media ids
39 'url': 'https://www.3sat.de/wissen/nano/nano-21-mai-2019-102.html',
40 'only_matching': True,