mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-03 00:44:51 +00:00
--match-filter -
to interactively ask for each video
This commit is contained in:
@@ -69,6 +69,7 @@ def format_text(text, f):
|
||||
raise SyntaxError(f'Invalid format {" ".join(tokens)!r} in {f!r}')
|
||||
|
||||
if fg_color or bg_color:
|
||||
text = text.replace(CONTROL_SEQUENCES['RESET'], f'{fg_color}{bg_color}')
|
||||
return f'{fg_color}{bg_color}{text}{CONTROL_SEQUENCES["RESET"]}'
|
||||
else:
|
||||
return text
|
||||
|
Reference in New Issue
Block a user