A feature-rich command-line audio/video downloader
Add `--compat-options 2024` (#12789)
sepro22e34adbd741
diff --git a/README.md b/README.mdindex 1ee4223856..0767221e7a 100644--- a/README.md+++ b/README.md@@ -2239,7 +2239,8 @@ For ease of use, a few more compat options are available:* `--compat-options youtube-dlc`: Same as `--compat-options all,-no-live-chat,-no-youtube-channel-redirect,-playlist-match-filter,-manifest-filesize-approx,-allow-unsafe-ext,-prefer-vp9-sort`* `--compat-options 2021`: Same as `--compat-options 2022,no-certifi,filename-sanitization,no-youtube-prefer-utc-upload-date`* `--compat-options 2022`: Same as `--compat-options 2023,playlist-match-filter,no-external-downloader-progress,prefer-legacy-http-handler,manifest-filesize-approx`-* `--compat-options 2023`: Same as `--compat-options prefer-vp9-sort`. Use this to enable all future compat options+* `--compat-options 2023`: Same as `--compat-options 2024,prefer-vp9-sort`+* `--compat-options 2024`: Currently does nothing. Use this to enable all future compat optionsThe following compat options restore vulnerable behavior from before security patches:diff --git a/yt_dlp/options.py b/yt_dlp/options.pyindex 91c2635a79..1742cbdfaf 100644--- a/yt_dlp/options.py+++ b/yt_dlp/options.py@@ -500,7 +500,8 @@ def create_parser():'youtube-dlc': ['all', '-no-youtube-channel-redirect', '-no-live-chat', '-playlist-match-filter', '-manifest-filesize-approx', '-allow-unsafe-ext', '-prefer-vp9-sort'],'2021': ['2022', 'no-certifi', 'filename-sanitization'],'2022': ['2023', 'no-external-downloader-progress', 'playlist-match-filter', 'prefer-legacy-http-handler', 'manifest-filesize-approx'],- '2023': ['prefer-vp9-sort'],+ '2023': ['2024', 'prefer-vp9-sort'],+ '2024': [],},}, help=('Options that can help keep compatibility with youtube-dl or youtube-dlc '