mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 23:43:20 +00:00
[rtp] Move http_headers into the info_dict
This commit is contained in:
parent
fbdb7f5b94
commit
d1a5efdd31
|
@ -82,17 +82,11 @@ def _real_extract(self, url):
|
|||
if f_dash is not None:
|
||||
formats.extend(self._extract_mpd_formats(
|
||||
f_dash, video_id, mpd_id='dash', headers=self.__HEADERS))
|
||||
|
||||
for fmt in formats:
|
||||
fmt.update({
|
||||
'http_headers': self.__HEADERS,
|
||||
})
|
||||
else:
|
||||
formats.append({
|
||||
'format_id': 'f',
|
||||
'url': f,
|
||||
'vcodec': 'none' if config.get('mediaType') == 'audio' else None,
|
||||
'http_headers': self.__HEADERS,
|
||||
})
|
||||
|
||||
subtitles = {}
|
||||
|
@ -112,4 +106,5 @@ def _real_extract(self, url):
|
|||
'description': self._html_search_meta(['description', 'twitter:description'], webpage),
|
||||
'thumbnail': config.get('poster') or self._og_search_thumbnail(webpage),
|
||||
'subtitles': subtitles,
|
||||
'http_headers': self.__HEADERS,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue