[ted] Extend search for description
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 10:37:16 +0000 (12:37 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Apr 2014 10:37:16 +0000 (12:37 +0200)
youtube_dl/extractor/ted.py

index 5b24716d99fbf4ce6d49652acaca1f37cefa739c..abe1c34d3e25a15749e060c4d0e44b0990c4e5f3 100644 (file)
@@ -178,7 +178,10 @@ class TEDIE(SubtitlesInfoExtractor):
         title = self._html_search_regex(
             r"(?s)<h1(?:\s+class='[^']+')?>(.+?)</h1>", webpage, 'title')
         description = self._html_search_regex(
-            r'(?s)<h4 class="[^"]+" id="h3--about-this-talk">.*?</h4>(.*?)</div>',
+            [
+                r'(?s)<h4 class="[^"]+" id="h3--about-this-talk">.*?</h4>(.*?)</div>',
+                r'(?s)<p><strong>About this talk:</strong>\s+(.*?)</p>',
+            ],
             webpage, 'description', fatal=False)
 
         return {