aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-01-01 13:42:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-01-01 14:11:15 +0530
commit2a06bb4eb671eb306a2687ef0a4f853b936f05e0 (patch)
treeca2c12a7dd44ac6e772e7d1d1ef7a8ef5fdd31a6 /yt_dlp/options.py
parent88fb9425775da7f92d24e8b5f3009cafb56e94d6 (diff)
downloadhypervideo-pre-2a06bb4eb671eb306a2687ef0a4f853b936f05e0.tar.lz
hypervideo-pre-2a06bb4eb671eb306a2687ef0a4f853b936f05e0.tar.xz
hypervideo-pre-2a06bb4eb671eb306a2687ef0a4f853b936f05e0.zip
Add `--compat-options 2021,2022`
Use these to guard against future compat changes. This allows devs to change defaults and make other potentially breaking changes more easily. If you need everything to work exactly as-is, put this in your config
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index be4695cbb..e9766c02d 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -470,6 +470,8 @@ def create_parser():
}, 'aliases': {
'youtube-dl': ['all', '-multistreams'],
'youtube-dlc': ['all', '-no-youtube-channel-redirect', '-no-live-chat'],
+ '2021': ['2022', 'no-certifi', 'filename-sanitization', 'no-youtube-prefer-utc-upload-date'],
+ '2022': [],
}
}, help=(
'Options that can help keep compatibility with youtube-dl or youtube-dlc '