A feature-rich command-line audio/video downloader
Add `--compat-options 2021,2022`
pukkandan2a06bb4eb671
diff --git a/README.md b/README.mdindex 4294090dc5..f6bf1175e2 100644--- a/README.md+++ b/README.md@@ -159,6 +159,8 @@ For ease of use, a few more compat options are available:* `--compat-options all`: Use all compat options (Do NOT use)* `--compat-options youtube-dl`: Same as `--compat-options all,-multistreams`* `--compat-options youtube-dlc`: Same as `--compat-options all,-no-live-chat,-no-youtube-channel-redirect`+* `--compat-options 2021`: Same as `--compat-options 2022,no-certifi,filename-sanitization,no-youtube-prefer-utc-upload-date`+* `--compat-options 2022`: Currently does nothing. Use this to enable all future compat options# INSTALLATIONdiff --git a/yt_dlp/options.py b/yt_dlp/options.pyindex be4695cbb5..e9766c02d7 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 '