commit: 621f33c9d00a82c2d119046917a8bb628dc38067
parent f07a9f6f4347facde15a0cca9560119f0b6f8a94
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Mon, 21 Apr 2014 12:37:16 +0200
[ted] Extend search for description
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py
@@ -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 {