about summary refs log tree commit diff
path: root/youtube_dl/extractor/telecinco.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-25 23:52:54 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-02-25 23:52:54 +0100
commitc10ea454dc7a06bf4d911774fd12b49ce7550845 (patch)
treeb437617e1257cd2f77085537149de530479006ae /youtube_dl/extractor/telecinco.py
parent13d8fbef30f1d7608b02e78818fa2ec211d69e21 (diff)
downloadyoutube-dl-c10ea454dc7a06bf4d911774fd12b49ce7550845.tar.gz
youtube-dl-c10ea454dc7a06bf4d911774fd12b49ce7550845.tar.xz
youtube-dl-c10ea454dc7a06bf4d911774fd12b49ce7550845.zip
[telecinco] Recognize more urls (closes #5065)
Diffstat (limited to 'youtube_dl/extractor/telecinco.py')
-rw-r--r--youtube_dl/extractor/telecinco.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/telecinco.py b/youtube_dl/extractor/telecinco.py
index be3f72df7..251a68680 100644
--- a/youtube_dl/extractor/telecinco.py
+++ b/youtube_dl/extractor/telecinco.py
@@ -6,9 +6,9 @@ from .mitele import MiTeleIE
 
 class TelecincoIE(MiTeleIE):
     IE_NAME = 'telecinco.es'
-    _VALID_URL = r'https?://www\.telecinco\.es/[^/]+/[^/]+/[^/]+/(?P<id>.*?)\.html'
+    _VALID_URL = r'https?://www\.telecinco\.es/[^/]+/[^/]+/(?:[^/]+/)?(?P<id>.*?)\.html'
 
-    _TEST = {
+    _TESTS = [{
         'url': 'http://www.telecinco.es/robinfood/temporada-01/t01xp14/Bacalao-cocochas-pil-pil_0_1876350223.html',
         'info_dict': {
             'id': 'MDSVID20141015_0058',
@@ -16,4 +16,7 @@ class TelecincoIE(MiTeleIE):
             'title': 'Con Martín Berasategui, hacer un bacalao al ...',
             'duration': 662,
         },
-    }
+    }, {
+        'url': 'http://www.telecinco.es/informativos/nacional/Pablo_Iglesias-Informativos_Telecinco-entrevista-Pedro_Piqueras_2_1945155182.html',
+        'only_matching': True,
+    }]