[mitele] It now uses m3u8 (#5764)
[youtube-dl] / youtube_dl / extractor / telecinco.py
1 # coding: utf-8
2 from __future__ import unicode_literals
3
4 from .mitele import MiTeleIE
5
6
7 class TelecincoIE(MiTeleIE):
8     IE_NAME = 'telecinco.es'
9     _VALID_URL = r'https?://www\.telecinco\.es/[^/]+/[^/]+/(?:[^/]+/)?(?P<id>.*?)\.html'
10
11     _TESTS = [{
12         'url': 'http://www.telecinco.es/robinfood/temporada-01/t01xp14/Bacalao-cocochas-pil-pil_0_1876350223.html',
13         'info_dict': {
14             'id': 'MDSVID20141015_0058',
15             'ext': 'mp4',
16             'title': 'Con Martín Berasategui, hacer un bacalao al ...',
17             'duration': 662,
18         },
19         'params': {
20             # m3u8 download
21             'skip_download': True,
22         },
23     }, {
24         'url': 'http://www.telecinco.es/informativos/nacional/Pablo_Iglesias-Informativos_Telecinco-entrevista-Pedro_Piqueras_2_1945155182.html',
25         'only_matching': True,
26     }]