1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-28 18:55:51 +01:00

[ted] Extend search for description

This commit is contained in:
Philipp Hagemeister 2014-04-21 12:37:16 +02:00
parent f07a9f6f43
commit 621f33c9d0

View 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 {