aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2025-03-31 00:38:46 +0200
committerGitHub <noreply@github.com>2025-03-31 00:38:46 +0200
commit22e34adbd741e1c7072015debd615dc3fb71c401 (patch)
tree5811ffdb13cabfc70eeade206881bde66e8b338c
parent6a6d97b2cbc78f818de05cc96edcdcfd52caa259 (diff)
Add `--compat-options 2024` (#12789)
Authored by: seproDev
-rw-r--r--README.md3
-rw-r--r--yt_dlp/options.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1ee422385..0767221e7 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 options
The following compat options restore vulnerable behavior from before security patches:
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index 91c2635a7..1742cbdfa 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 '