mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-02 20:45:28 +02:00
[ted] Prepare #980 merge
This commit is contained in:
parent
3cd022f6e6
commit
0d8cb1cc14
@ -77,12 +77,20 @@ def _talk_info(self, url, video_id=0):
|
|||||||
|
|
||||||
thumbnail = self._search_regex(r'</span>[\s.]*</div>[\s.]*<img src="(.*?)"',
|
thumbnail = self._search_regex(r'</span>[\s.]*</div>[\s.]*<img src="(.*?)"',
|
||||||
webpage, 'thumbnail')
|
webpage, 'thumbnail')
|
||||||
|
formats = [{
|
||||||
|
'ext': 'mp4',
|
||||||
|
'url': stream['file'],
|
||||||
|
'format': stream['id']
|
||||||
|
} for stream in info['htmlStreams']]
|
||||||
info = {
|
info = {
|
||||||
'id': info['id'],
|
'id': info['id'],
|
||||||
'url': info['htmlStreams'][-1]['file'],
|
'title': title,
|
||||||
'ext': 'mp4',
|
'thumbnail': thumbnail,
|
||||||
'title': title,
|
'description': desc,
|
||||||
'thumbnail': thumbnail,
|
'formats': formats,
|
||||||
'description': desc,
|
}
|
||||||
}
|
|
||||||
|
# TODO: Remove when #980 has been merged
|
||||||
|
info.update(info['formats'][-1])
|
||||||
|
|
||||||
return info
|
return info
|
||||||
|
Loading…
Reference in New Issue
Block a user