[mitele] It now uses m3u8 (#5764)

It should also be possible to use Adobe HDS, but it would require more work.
This commit is contained in:
Jaime Marquínez Ferrándiz 2015-05-21 12:02:53 +02:00
parent 4d2f42361e
commit 6ad9cb224a
2 changed files with 11 additions and 2 deletions

View file

@ -20,7 +20,6 @@ class MiTeleIE(InfoExtractor):
_TESTS = [{ _TESTS = [{
'url': 'http://www.mitele.es/programas-tv/diario-de/la-redaccion/programa-144/', 'url': 'http://www.mitele.es/programas-tv/diario-de/la-redaccion/programa-144/',
'md5': '6a75fe9d0d3275bead0cb683c616fddb',
'info_dict': { 'info_dict': {
'id': '0fce117d', 'id': '0fce117d',
'ext': 'mp4', 'ext': 'mp4',
@ -29,6 +28,10 @@ class MiTeleIE(InfoExtractor):
'display_id': 'programa-144', 'display_id': 'programa-144',
'duration': 2913, 'duration': 2913,
}, },
'params': {
# m3u8 download
'skip_download': True,
},
}] }]
def _real_extract(self, url): def _real_extract(self, url):
@ -56,12 +59,14 @@ def _real_extract(self, url):
episode, episode,
transform_source=strip_jsonp transform_source=strip_jsonp
) )
formats = self._extract_m3u8_formats(
token_info['tokenizedUrl'], episode, ext='mp4')
return { return {
'id': embed_data['videoId'], 'id': embed_data['videoId'],
'display_id': episode, 'display_id': episode,
'title': info_el.find('title').text, 'title': info_el.find('title').text,
'url': token_info['tokenizedUrl'], 'formats': formats,
'description': get_element_by_attribute('class', 'text', webpage), 'description': get_element_by_attribute('class', 'text', webpage),
'thumbnail': info_el.find('thumb').text, 'thumbnail': info_el.find('thumb').text,
'duration': parse_duration(info_el.find('duration').text), 'duration': parse_duration(info_el.find('duration').text),

View file

@ -16,6 +16,10 @@ class TelecincoIE(MiTeleIE):
'title': 'Con Martín Berasategui, hacer un bacalao al ...', 'title': 'Con Martín Berasategui, hacer un bacalao al ...',
'duration': 662, 'duration': 662,
}, },
'params': {
# m3u8 download
'skip_download': True,
},
}, { }, {
'url': 'http://www.telecinco.es/informativos/nacional/Pablo_Iglesias-Informativos_Telecinco-entrevista-Pedro_Piqueras_2_1945155182.html', 'url': 'http://www.telecinco.es/informativos/nacional/Pablo_Iglesias-Informativos_Telecinco-entrevista-Pedro_Piqueras_2_1945155182.html',
'only_matching': True, 'only_matching': True,