diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-25 14:06:46 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-25 14:27:09 +0530 |
commit | 6db9c4d57d033fb22c94a2e6f1ecf0207e700b4c (patch) | |
tree | 5b418b4e393bad45ee2b55da2f3f419058c7e806 /yt_dlp/YoutubeDL.py | |
parent | 3cea3edd1ac1101bd709dfa0305509028118b163 (diff) | |
download | hypervideo-pre-6db9c4d57d033fb22c94a2e6f1ecf0207e700b4c.tar.lz hypervideo-pre-6db9c4d57d033fb22c94a2e6f1ecf0207e700b4c.tar.xz hypervideo-pre-6db9c4d57d033fb22c94a2e6f1ecf0207e700b4c.zip |
Ignore format-specific fields in initial pass of `--match-filter`
Closes #3074
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 740f9a7bd..5771fbcf7 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -513,6 +513,16 @@ class YoutubeDL(object): 'track_number', 'disc_number', 'release_year', )) + _format_fields = { + # NB: Keep in sync with the docstring of extractor/common.py + 'url', 'manifest_url', 'ext', 'format', 'format_id', 'format_note', + 'width', 'height', 'resolution', 'dynamic_range', 'tbr', 'abr', 'acodec', 'asr', + 'vbr', 'fps', 'vcodec', 'container', 'filesize', 'filesize_approx', + 'player_url', 'protocol', 'fragment_base_url', 'fragments', 'is_from_start', + 'preference', 'language', 'language_preference', 'quality', 'source_preference', + 'http_headers', 'stretched_ratio', 'no_resume', 'has_drm', 'downloader_options', + 'page_url', 'app', 'play_path', 'tc_url', 'flash_version', 'rtmp_live', 'rtmp_conn', 'rtmp_protocol', 'rtmp_real_time' + } _format_selection_exts = { 'audio': {'m4a', 'mp3', 'ogg', 'aac'}, 'video': {'mp4', 'flv', 'webm', '3gp'}, @@ -2541,7 +2551,7 @@ class YoutubeDL(object): info_dict, _ = self.pre_process(info_dict) - if self._match_entry(info_dict) is not None: + if self._match_entry(info_dict, incomplete=self._format_fields) is not None: return info_dict self.post_extract(info_dict) |