mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 00:00:48 +01:00
[dump] Fix title extraction
This commit is contained in:
parent
a319c33d8b
commit
fefc9d121d
@ -28,12 +28,12 @@ def _real_extract(self, url):
|
|||||||
video_url = self._search_regex(
|
video_url = self._search_regex(
|
||||||
r's1.addVariable\("file",\s*"([^"]+)"', webpage, 'video URL')
|
r's1.addVariable\("file",\s*"([^"]+)"', webpage, 'video URL')
|
||||||
|
|
||||||
thumb = self._og_search_thumbnail(webpage)
|
title = self._og_search_title(webpage)
|
||||||
title = self._search_regex(r'<b>([^"]+)</b>', webpage, 'title')
|
thumbnail = self._og_search_thumbnail(webpage)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'url': video_url,
|
'url': video_url,
|
||||||
'thumbnail': thumb,
|
'thumbnail': thumbnail,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user