projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f84ce1e
)
[telecinco] Add support or cuatro.com
author
Sergey M․
<dstftw@gmail.com>
Wed, 16 Sep 2015 16:37:01 +0000
(22:37 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 16 Sep 2015 16:37:01 +0000
(22:37 +0600)
youtube_dl/extractor/telecinco.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/telecinco.py
b/youtube_dl/extractor/telecinco.py
index c0ad286c52564b3e8f9742e7d7c0c7c82d8116d8..018fd7d34ea925c664785f3c4b2cb1405c60c0c2 100644
(file)
--- 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'
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',
_TESTS = [{
'url': 'http://www.telecinco.es/robinfood/temporada-01/t01xp14/Bacalao-cocochas-pil-pil_0_1876350223.html',
@@
-32,6
+32,15
@@
class TelecincoIE(InfoExtractor):
# m3u8 download
'skip_download': True,
},
# m3u8 download
'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,
}, {
'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(
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'],
return {
'id': embed_data['videoId'],