projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07a9f6
)
[ted] Extend search for description
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 21 Apr 2014 10:37:16 +0000
(12:37 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 21 Apr 2014 10:37:16 +0000
(12:37 +0200)
youtube_dl/extractor/ted.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ted.py
b/youtube_dl/extractor/ted.py
index 5b24716d99fbf4ce6d49652acaca1f37cefa739c..abe1c34d3e25a15749e060c4d0e44b0990c4e5f3 100644
(file)
--- 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 {