summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-07-19 16:13:31 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-07-19 16:13:31 +0200
commit177ed935a9e2d9387843c015a1a5bdb1bf1906f9 (patch)
tree4cc0d5fd417a4ac5dd7f386cc62d809fdda7f054
parentc364f15ff1b86a0068cbec4f6782a4baf7a06152 (diff)
downloadyoutube-dl-177ed935a9e2d9387843c015a1a5bdb1bf1906f9.tar.gz
youtube-dl-177ed935a9e2d9387843c015a1a5bdb1bf1906f9.tar.xz
youtube-dl-177ed935a9e2d9387843c015a1a5bdb1bf1906f9.zip
TEDIE: fix the title extraction
-rw-r--r--youtube_dl/extractor/ted.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py
index 8b73b8340..4c11f7a03 100644
--- a/youtube_dl/extractor/ted.py
+++ b/youtube_dl/extractor/ted.py
@@ -67,7 +67,7 @@ class TEDIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id, 'Downloading \"%s\" page' % video_name)
         self.report_extraction(video_name)
         # If the url includes the language we get the title translated
-        title = self._html_search_regex(r'<span id="altHeadline" >(?P<title>.*)</span>',
+        title = self._html_search_regex(r'<span .*?id="altHeadline".+?>(?P<title>.*)</span>',
                                         webpage, 'title')
         json_data = self._search_regex(r'<script.*?>var talkDetails = ({.*?})</script>',
                                     webpage, 'json data')