From 1409f53fa423ab77dafd703c3af8f327baa746eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Cerdeira?= Date: Wed, 15 Feb 2017 19:00:44 -0300 Subject: [PATCH] Issue #12139 fix Better method for extracting video title --- youtube_dl/extractor/elpais.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/elpais.py b/youtube_dl/extractor/elpais.py index 99e00cf3c..63b9580c8 100644 --- a/youtube_dl/extractor/elpais.py +++ b/youtube_dl/extractor/elpais.py @@ -63,10 +63,16 @@ class ElPaisIE(InfoExtractor): thumbnail = ( None if thumbnail_suffix is None else prefix + thumbnail_suffix) + + # This method is better for general porpouses than extracting from javascript as before title = self._html_search_regex( - (r"tituloVideo\s*=\s*'([^']+)'", webpage, 'title', - r'

', webpage, 'upload date', default=None) or self._html_search_meta(