mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-06 08:53:49 +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':
|
||||
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
|
||||
post_file['url'], video_id, headers=headers)
|
||||
for f in formats:
|
||||
f.setdefault('http_headers', {}).update(headers)
|
||||
entries.append({
|
||||
'id': video_id,
|
||||
'formats': formats,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user