mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-06 00:49:20 +02:00
[rtp] Move http_headers into the info_dict
This commit is contained in:
@@ -82,17 +82,11 @@ class RTPIE(InfoExtractor):
|
|||||||
if f_dash is not None:
|
if f_dash is not None:
|
||||||
formats.extend(self._extract_mpd_formats(
|
formats.extend(self._extract_mpd_formats(
|
||||||
f_dash, video_id, mpd_id='dash', headers=self.__HEADERS))
|
f_dash, video_id, mpd_id='dash', headers=self.__HEADERS))
|
||||||
|
|
||||||
for fmt in formats:
|
|
||||||
fmt.update({
|
|
||||||
'http_headers': self.__HEADERS,
|
|
||||||
})
|
|
||||||
else:
|
else:
|
||||||
formats.append({
|
formats.append({
|
||||||
'format_id': 'f',
|
'format_id': 'f',
|
||||||
'url': f,
|
'url': f,
|
||||||
'vcodec': 'none' if config.get('mediaType') == 'audio' else None,
|
'vcodec': 'none' if config.get('mediaType') == 'audio' else None,
|
||||||
'http_headers': self.__HEADERS,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
@@ -112,4 +106,5 @@ class RTPIE(InfoExtractor):
|
|||||||
'description': self._html_search_meta(['description', 'twitter:description'], webpage),
|
'description': self._html_search_meta(['description', 'twitter:description'], webpage),
|
||||||
'thumbnail': config.get('poster') or self._og_search_thumbnail(webpage),
|
'thumbnail': config.get('poster') or self._og_search_thumbnail(webpage),
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
|
'http_headers': self.__HEADERS,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user