mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-12-01 21:36:42 +02:00
[ie] Pass HTTP headers when checking formats (#17858)
Authored by: doe1080
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user