mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-17 23:24:01 -05:00
parent
0bb1bc1b10
commit
63b1ad0f05
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,10 @@ def _real_extract(self, url):
|
||||||
title = remove_end(self._html_search_regex(
|
title = remove_end(self._html_search_regex(
|
||||||
r'<title>([^<]+)</title>', webpage, 'title'), ' | Iwara')
|
r'<title>([^<]+)</title>', webpage, 'title'), ' | Iwara')
|
||||||
|
|
||||||
|
thumbnail = self._html_search_regex(
|
||||||
|
r'<video[^>]+id=[\'"]video-player[\'"][^>]+poster=[\'"]([^\'"]+)',
|
||||||
|
webpage, 'thumbnail', default=None)
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for a_format in video_data:
|
for a_format in video_data:
|
||||||
format_uri = url_or_none(a_format.get('uri'))
|
format_uri = url_or_none(a_format.get('uri'))
|
||||||
|
@ -96,4 +100,5 @@ def _real_extract(self, url):
|
||||||
'title': title,
|
'title': title,
|
||||||
'age_limit': age_limit,
|
'age_limit': age_limit,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
'thumbnail': self._proto_relative_url(thumbnail, 'https:'),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue