add referer header to variant m3u8 formats

Authored by: bashonly
This commit is contained in:
bashonly 2025-05-22 13:47:55 -05:00
parent 7dd35cf1fa
commit eb8cbc2c80
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -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,