diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-09-16 22:37:01 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-09-16 22:37:01 +0600 |
commit | d5e7657fe2c045545e3cdc089413661befad8b4c (patch) | |
tree | 2854b70590d657f64806fa90147bf6b249ca9b97 /youtube_dl | |
parent | f84ce1ebaf930f5fc422e4fab77fa9c7c86a999a (diff) |
[telecinco] Add support or cuatro.com
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/telecinco.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/youtube_dl/extractor/telecinco.py b/youtube_dl/extractor/telecinco.py index c0ad286c5..018fd7d34 100644 --- a/youtube_dl/extractor/telecinco.py +++ b/youtube_dl/extractor/telecinco.py @@ -18,7 +18,7 @@ from ..utils import ( class TelecincoIE(InfoExtractor): IE_NAME = 'telecinco.es' - _VALID_URL = r'https?://www\.telecinco\.es/(?:[^/]+/)+(?P<id>.+?)\.html' + _VALID_URL = r'https?://www\.(?:telecinco\.es|cuatro\.com)/(?:[^/]+/)+(?P<id>.+?)\.html' _TESTS = [{ 'url': 'http://www.telecinco.es/robinfood/temporada-01/t01xp14/Bacalao-cocochas-pil-pil_0_1876350223.html', @@ -33,6 +33,15 @@ class TelecincoIE(InfoExtractor): 'skip_download': True, }, }, { + 'url': 'http://www.cuatro.com/deportes/futbol/barcelona/Leo_Messi-Champions-Roma_2_2052780128.html', + 'md5': '0a5b9f3cc8b074f50a0578f823a12694', + 'info_dict': { + 'id': 'MDSVID20150916_0128', + 'ext': 'mp4', + 'title': '¿Quién es este ex futbolista con el que hablan ...', + 'duration': 79, + }, + }, { 'url': 'http://www.telecinco.es/informativos/nacional/Pablo_Iglesias-Informativos_Telecinco-entrevista-Pedro_Piqueras_2_1945155182.html', 'only_matching': True, }, { @@ -66,7 +75,7 @@ class TelecincoIE(InfoExtractor): transform_source=strip_jsonp ) formats = self._extract_m3u8_formats( - token_info['tokenizedUrl'], episode, ext='mp4') + token_info['tokenizedUrl'], episode, ext='mp4', entry_protocol='m3u8_native') return { 'id': embed_data['videoId'], |