mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-30 12:36:03 +00:00
add referer header to variant m3u8 formats
Authored by: bashonly
This commit is contained in:
parent
7dd35cf1fa
commit
eb8cbc2c80
@ -381,6 +381,8 @@ class PatreonIE(PatreonBaseIE):
|
|||||||
elif name == 'video' or determine_ext(post_file.get('url')) == 'm3u8':
|
elif name == 'video' or determine_ext(post_file.get('url')) == 'm3u8':
|
||||||
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
||||||
post_file['url'], video_id, headers=headers)
|
post_file['url'], video_id, headers=headers)
|
||||||
|
for f in formats:
|
||||||
|
f.setdefault('http_headers', {}).update(headers)
|
||||||
entries.append({
|
entries.append({
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user