mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 16:03:16 +00:00
[drtuber] Improve title extraction
This commit is contained in:
parent
0aef0771f8
commit
367976d49f
|
@ -38,7 +38,9 @@ def _real_extract(self, url):
|
||||||
r'<source src="([^"]+)"', webpage, 'video URL')
|
r'<source src="([^"]+)"', webpage, 'video URL')
|
||||||
|
|
||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
[r'<p[^>]+class="title_substrate">([^<]+)</p>', r'<title>([^<]+) - \d+'],
|
(r'class="title_watch"[^>]*><p>([^<]+)<',
|
||||||
|
r'<p[^>]+class="title_substrate">([^<]+)</p>',
|
||||||
|
r'<title>([^<]+) - \d+'),
|
||||||
webpage, 'title')
|
webpage, 'title')
|
||||||
|
|
||||||
thumbnail = self._html_search_regex(
|
thumbnail = self._html_search_regex(
|
||||||
|
|
Loading…
Reference in a new issue