Parcourir la source

TEDIE: fix the title extraction

Jaime Marquínez Ferrándiz il y a 12 ans
Parent
commit
177ed935a9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      youtube_dl/extractor/ted.py

+ 1 - 1
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')