diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2024-07-16 21:51:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 21:51:56 +0200 |
commit | d9cbced493cae2008508d94a2db5dd98be7c01fc (patch) | |
tree | 8b946fa6787c38df2ce0da0faa08ffc809fc369e /yt_dlp/__init__.py | |
parent | 66ce3d76d87af3f81cc9dfec4be4704016cb1cdb (diff) |
[core] Support `auto-tty` and `no_color-tty` for `--color` (#10453)
Authored by: Grub4K
Diffstat (limited to 'yt_dlp/__init__.py')
-rw-r--r-- | yt_dlp/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 0e48569e3..c0b8e3b50 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -468,7 +468,7 @@ def validate_options(opts): default_downloader = ed.get_basename() for policy in opts.color.values(): - if policy not in ('always', 'auto', 'no_color', 'never'): + if policy not in ('always', 'auto', 'auto-tty', 'no_color', 'no_color-tty', 'never'): raise ValueError(f'"{policy}" is not a valid color policy') warnings, deprecation_warnings = [], [] |