[cleanup] Misc (#17159)

Closes #17196, Closes #17385
Authored by: bashonly, dialmaster, gamer191, BOplaid

Co-authored-by: Christopher Dial <dial.chris@gmail.com>
Co-authored-by: BOplaid <146466352+BOplaid@users.noreply.github.com>
Co-authored-by: gamer191 <83270075+gamer191@users.noreply.github.com>
This commit is contained in:
bashonly
2026-08-15 23:53:52 +00:00
committed by GitHub
co-authored by Christopher Dial BOplaid gamer191
parent 4dc054d51c
commit 4e969d3a6c
7 changed files with 61 additions and 25 deletions
+4 -1
View File
@@ -32,6 +32,7 @@ from yt_dlp.utils import (
ExtractorError,
UnavailableVideoError,
YoutubeDLError,
filter_dict,
format_bytes,
join_nonempty,
)
@@ -137,7 +138,9 @@ def generator(test_case, tname):
expect_warnings(ydl, test_case.get('expected_warnings', []))
def get_tc_filename(tc):
return ydl.prepare_filename(dict(tc.get('info_dict', {})))
# Filename is generated from expected info dict, so filter out type wildcard values
return ydl.prepare_filename(
filter_dict(tc.get('info_dict', {}), cndn=lambda _, v: type(v) is not type))
res_dict = None