]> asedeno.scripts.mit.edu Git - youtube-dl.git/blob - youtube_dl/extractor/dreisat.py
Return the item itself if playlist has one entry
[youtube-dl.git] / youtube_dl / extractor / dreisat.py
1 from __future__ import unicode_literals
2
3 from .zdf import ZDFIE
4
5
6 class DreiSatIE(ZDFIE):
7     IE_NAME = '3sat'
8     _VALID_URL = r'https?://(?:www\.)?3sat\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)\.html'
9     _TESTS = [{
10         # Same as https://www.zdf.de/dokumentation/ab-18/10-wochen-sommer-102.html
11         'url': 'https://www.3sat.de/film/ab-18/10-wochen-sommer-108.html',
12         'md5': '0aff3e7bc72c8813f5e0fae333316a1d',
13         'info_dict': {
14             'id': '141007_ab18_10wochensommer_film',
15             'ext': 'mp4',
16             'title': 'Ab 18! - 10 Wochen Sommer',
17             'description': 'md5:8253f41dc99ce2c3ff892dac2d65fe26',
18             'duration': 2660,
19             'timestamp': 1608604200,
20             'upload_date': '20201222',
21         },
22     }, {
23         'url': 'https://www.3sat.de/gesellschaft/schweizweit/waidmannsheil-100.html',
24         'info_dict': {
25             'id': '140913_sendung_schweizweit',
26             'ext': 'mp4',
27             'title': 'Waidmannsheil',
28             'description': 'md5:cce00ca1d70e21425e72c86a98a56817',
29             'timestamp': 1410623100,
30             'upload_date': '20140913'
31         },
32         'params': {
33             'skip_download': True,
34         }
35     }, {
36         # Same as https://www.zdf.de/filme/filme-sonstige/der-hauptmann-112.html
37         'url': 'https://www.3sat.de/film/spielfilm/der-hauptmann-100.html',
38         'only_matching': True,
39     }, {
40         # Same as https://www.zdf.de/wissen/nano/nano-21-mai-2019-102.html, equal media ids
41         'url': 'https://www.3sat.de/wissen/nano/nano-21-mai-2019-102.html',
42         'only_matching': True,
43     }]