aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-03-25 14:06:46 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-03-25 14:27:09 +0530
commit6db9c4d57d033fb22c94a2e6f1ecf0207e700b4c (patch)
tree5b418b4e393bad45ee2b55da2f3f419058c7e806 /test
parent3cea3edd1ac1101bd709dfa0305509028118b163 (diff)
downloadhypervideo-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 'test')
-rw-r--r--test/helper.py10
-rw-r--r--test/test_YoutubeDL.py2
2 files changed, 2 insertions, 10 deletions
diff --git a/test/helper.py b/test/helper.py
index 1070e0668..28c21b2eb 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -196,15 +196,7 @@ def expect_dict(self, got_dict, expected_dict):
def sanitize_got_info_dict(got_dict):
IGNORED_FIELDS = (
- # Format keys
- 'url', 'manifest_url', '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', 'preference',
- 'language', 'language_preference', 'quality', 'source_preference', 'http_headers',
- 'stretched_ratio', 'no_resume', 'has_drm', 'downloader_options',
-
- # RTMP formats
- 'page_url', 'app', 'play_path', 'tc_url', 'flash_version', 'rtmp_live', 'rtmp_conn', 'rtmp_protocol', 'rtmp_real_time',
+ *YoutubeDL._format_fields,
# Lists
'formats', 'thumbnails', 'subtitles', 'automatic_captions', 'comments', 'entries',
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index 7637297be..f9b40501d 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -931,7 +931,7 @@ class TestYoutubeDL(unittest.TestCase):
res = get_videos()
self.assertEqual(res, ['1', '2'])
- def f(v):
+ def f(v, incomplete):
if v['id'] == '1':
return None
else: