mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 16:43:13 +00:00
[screencast] Improve title regexes (Closes #9025)
This commit is contained in:
parent
791d6aaecc
commit
75d572e9fb
1 changed files with 3 additions and 3 deletions
|
@ -96,9 +96,9 @@ def _real_extract(self, url):
|
|||
title = self._og_search_title(webpage, default=None)
|
||||
if title is None:
|
||||
title = self._html_search_regex(
|
||||
[r'<b>Title:</b> ([^<]*)</div>',
|
||||
r'class="tabSeperator">></span><span class="tabText">(.*?)<',
|
||||
r'<title>([^<]*)</title>'],
|
||||
[r'<b>Title:</b> ([^<]+)</div>',
|
||||
r'class="tabSeperator">></span><span class="tabText">(.+?)<',
|
||||
r'<title>([^<]+)</title>'],
|
||||
webpage, 'title')
|
||||
thumbnail = self._og_search_thumbnail(webpage)
|
||||
description = self._og_search_description(webpage, default=None)
|
||||
|
|
Loading…
Reference in a new issue