mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-18 18:16:18 +03:00
[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:
co-authored by
Christopher Dial
BOplaid
gamer191
parent
4dc054d51c
commit
4e969d3a6c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user