1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

Rename compat option

This commit is contained in:
pukkandan 2024-02-27 08:51:37 +05:30
parent 06d20ff8bd
commit bd3676f6e5
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
3 changed files with 4 additions and 4 deletions

View file

@ -150,7 +150,7 @@ ### Differences in default behavior
* Unavailable videos are also listed for YouTube playlists. Use `--compat-options no-youtube-unavailable-videos` to remove this
* The upload dates extracted from YouTube are in UTC [when available](https://github.com/yt-dlp/yt-dlp/blob/89e4d86171c7b7c997c77d4714542e0383bf0db0/yt_dlp/extractor/youtube.py#L3898-L3900). Use `--compat-options no-youtube-prefer-utc-upload-date` to prefer the non-UTC upload date.
* If `ffmpeg` is used as the downloader, the downloading and merging of formats happen in a single step when possible. Use `--compat-options no-direct-merge` to revert this
* Thumbnail embedding in `mp4`/`mp3` are done with `mutagen` if possible. Use `--compat-options no-embed-thumbnail-mutagen` to force the use of `ffmpeg`/`AtomicParsley` instead
* Thumbnail embedding in `mp4`/`mp3` are done with `mutagen` if possible. Use `--compat-options avoid-mutagen` to force the use of `ffmpeg`/`AtomicParsley` instead
* Some internal metadata such as filenames are removed by default from the infojson. Use `--no-clean-infojson` or `--compat-options no-clean-infojson` to revert this
* When `--embed-subs` and `--write-subs` are used together, the subtitles are written to disk and also embedded in the media file. You can use just `--embed-subs` to embed the subs and automatically delete the separate file. See [#630 (comment)](https://github.com/yt-dlp/yt-dlp/issues/630#issuecomment-893659460) for more info. `--compat-options no-keep-subs` can be used to revert this
* `certifi` will be used for SSL root certificates, if installed. If you want to use system certificates (e.g. self-signed), use `--compat-options no-certifi`

View file

@ -468,12 +468,12 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
'allowed_values': {
'filename', 'filename-sanitization', 'format-sort', 'abort-on-error', 'format-spec', 'no-playlist-metafiles',
'multistreams', 'no-live-chat', 'playlist-index', 'list-formats', 'no-direct-merge', 'playlist-match-filter',
'no-attach-info-json', 'no-embed-thumbnail-mutagen', 'no-external-downloader-progress',
'no-attach-info-json', 'avoid-mutagen', 'no-external-downloader-progress',
'embed-metadata', 'seperate-video-versions', 'no-clean-infojson', 'no-keep-subs', 'no-certifi',
'no-youtube-channel-redirect', 'no-youtube-unavailable-videos', 'no-youtube-prefer-utc-upload-date',
'prefer-legacy-http-handler', 'manifest-filesize-approx'
}, 'aliases': {
'embed-thumbnail-atomicparsley': ['no-embed-thumbnail-mutagen'], # compat
'embed-thumbnail-atomicparsley': ['avoid-mutagen'], # compat
'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'],

View file

@ -90,7 +90,7 @@ def run(self, info):
avoid_mutagen = any(
opt in self.get_param('compat_opts', [])
for opt in ('no-embed-thumbnail-mutagen', 'embed-thumbnail-atomicparsley'))
for opt in ('avoid-mutagen', 'embed-thumbnail-atomicparsley'))
success = True
if info['ext'] == 'mp3':
# Method 1: Use mutagen