mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 23:04:25 +00:00
[ted] Extend search for description
This commit is contained in:
parent
f07a9f6f43
commit
621f33c9d0
1 changed files with 4 additions and 1 deletions
|
@ -178,7 +178,10 @@ def _watch_info(self, url, name):
|
||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
r"(?s)<h1(?:\s+class='[^']+')?>(.+?)</h1>", webpage, 'title')
|
r"(?s)<h1(?:\s+class='[^']+')?>(.+?)</h1>", webpage, 'title')
|
||||||
description = self._html_search_regex(
|
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)
|
webpage, 'description', fatal=False)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue