aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/mitele.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-05-21 12:02:53 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-05-21 12:02:53 +0200
commit6ad9cb224a7d9156109fe0b0100d277b954063d3 (patch)
tree9da97cac128799e6bd2ee9216847bb3562f67db1 /youtube_dl/extractor/mitele.py
parent4d2f42361e02bb67de7c2017c6817b46ff3b2bd2 (diff)
downloadyoutube-dl-6ad9cb224a7d9156109fe0b0100d277b954063d3.tar.xz
[mitele] It now uses m3u8 (#5764)
It should also be possible to use Adobe HDS, but it would require more work.
Diffstat (limited to 'youtube_dl/extractor/mitele.py')
-rw-r--r--youtube_dl/extractor/mitele.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/youtube_dl/extractor/mitele.py b/youtube_dl/extractor/mitele.py
index d8897eb90..7091f3335 100644
--- a/youtube_dl/extractor/mitele.py
+++ b/youtube_dl/extractor/mitele.py
@@ -20,7 +20,6 @@ class MiTeleIE(InfoExtractor):
_TESTS = [{
'url': 'http://www.mitele.es/programas-tv/diario-de/la-redaccion/programa-144/',
- 'md5': '6a75fe9d0d3275bead0cb683c616fddb',
'info_dict': {
'id': '0fce117d',
'ext': 'mp4',
@@ -29,6 +28,10 @@ class MiTeleIE(InfoExtractor):
'display_id': 'programa-144',
'duration': 2913,
},
+ 'params': {
+ # m3u8 download
+ 'skip_download': True,
+ },
}]
def _real_extract(self, url):
@@ -56,12 +59,14 @@ class MiTeleIE(InfoExtractor):
episode,
transform_source=strip_jsonp
)
+ formats = self._extract_m3u8_formats(
+ token_info['tokenizedUrl'], episode, ext='mp4')
return {
'id': embed_data['videoId'],
'display_id': episode,
'title': info_el.find('title').text,
- 'url': token_info['tokenizedUrl'],
+ 'formats': formats,
'description': get_element_by_attribute('class', 'text', webpage),
'thumbnail': info_el.find('thumb').text,
'duration': parse_duration(info_el.find('duration').text),