diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2024-01-31 09:35:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 09:35:35 +0100 |
commit | 3725b4f0c93ca3943e6300013a9670e4ab757fda (patch) | |
tree | ce9507c0bd55afac26a63f31b97edb448496b12f | |
parent | 67bb70cd700c8d4c3149cd9e0539a5f32c3d1ce6 (diff) |
[core] Add `--compat-options 2023` (#9084)
Authored by: Grub4K
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | yt_dlp/options.py | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -167,7 +167,8 @@ For ease of use, a few more compat options are available: * `--compat-options youtube-dl`: Same as `--compat-options all,-multistreams,-playlist-match-filter,-manifest-filesize-approx` * `--compat-options youtube-dlc`: Same as `--compat-options all,-no-live-chat,-no-youtube-channel-redirect,-playlist-match-filter,-manifest-filesize-approx` * `--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 playlist-match-filter,no-external-downloader-progress,prefer-legacy-http-handler,manifest-filesize-approx`. Use this to enable all future compat options +* `--compat-options 2022`: Same as `--compat-options 2023,playlist-match-filter,no-external-downloader-progress` +* `--compat-options 2023`: Same as `--compat-options prefer-legacy-http-handler,manifest-filesize-approx`. Use this to enable all future compat options # INSTALLATION diff --git a/yt_dlp/options.py b/yt_dlp/options.py index e9d927717..9bea6549d 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -476,7 +476,8 @@ def create_parser(): 'youtube-dl': ['all', '-multistreams', '-playlist-match-filter', '-manifest-filesize-approx'], 'youtube-dlc': ['all', '-no-youtube-channel-redirect', '-no-live-chat', '-playlist-match-filter', '-manifest-filesize-approx'], '2021': ['2022', 'no-certifi', 'filename-sanitization', 'no-youtube-prefer-utc-upload-date'], - '2022': ['no-external-downloader-progress', 'playlist-match-filter', 'prefer-legacy-http-handler', 'manifest-filesize-approx'], + '2022': ['2023', 'no-external-downloader-progress', 'playlist-match-filter'], + '2023': ['prefer-legacy-http-handler', 'manifest-filesize-approx'], } }, help=( 'Options that can help keep compatibility with youtube-dl or youtube-dlc ' |