mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 18:34:32 +01:00
[screencast] Improve title regexes (Closes #9025)
This commit is contained in:
parent
791d6aaecc
commit
75d572e9fb
@ -96,9 +96,9 @@ class ScreencastIE(InfoExtractor):
|
|||||||
title = self._og_search_title(webpage, default=None)
|
title = self._og_search_title(webpage, default=None)
|
||||||
if title is None:
|
if title is None:
|
||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
[r'<b>Title:</b> ([^<]*)</div>',
|
[r'<b>Title:</b> ([^<]+)</div>',
|
||||||
r'class="tabSeperator">></span><span class="tabText">(.*?)<',
|
r'class="tabSeperator">></span><span class="tabText">(.+?)<',
|
||||||
r'<title>([^<]*)</title>'],
|
r'<title>([^<]+)</title>'],
|
||||||
webpage, 'title')
|
webpage, 'title')
|
||||||
thumbnail = self._og_search_thumbnail(webpage)
|
thumbnail = self._og_search_thumbnail(webpage)
|
||||||
description = self._og_search_description(webpage, default=None)
|
description = self._og_search_description(webpage, default=None)
|
||||||
|
Loading…
Reference in New Issue
Block a user