[ie] Pass HTTP headers when checking formats (#17858)

Authored by: doe1080
This commit is contained in:
doe1080
2026-12-01 01:39:58 +00:00
committed by GitHub
parent 573de15470
commit 356d300e44
+2 -1
View File
@@ -1959,7 +1959,8 @@ class InfoExtractor:
formats[:] = filter(
lambda f: self._is_valid_url(
f['url'], video_id,
item='{} video format'.format(f.get('format_id')) if f.get('format_id') else 'video'),
item='{} video format'.format(f.get('format_id')) if f.get('format_id') else 'video',
headers=f.get('http_headers')),
formats)
@staticmethod