1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-02 12:07:00 +00:00

Merge branch 'master' into pr/live-sections

This commit is contained in:
bashonly
2024-07-21 17:25:36 -05:00
34 changed files with 677 additions and 572 deletions

View File

@@ -475,7 +475,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 = [], []