1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-15 00:48:28 +00:00

Change ytdl opt name

This commit is contained in:
sepro 2025-08-06 00:00:44 +02:00
parent eec672c88e
commit d10f53f339
2 changed files with 3 additions and 4 deletions

View File

@ -705,9 +705,8 @@ def process_color_policy(stream):
if system_deprecation: if system_deprecation:
self.deprecated_feature(system_deprecation.replace('\n', '\n ')) self.deprecated_feature(system_deprecation.replace('\n', '\n '))
if self.params.get('update_self') is None: if self.params.get('warn_when_outdated'):
version_age_warning = _get_version_age_warning() if version_age_warning := _get_version_age_warning():
if version_age_warning:
self.report_warning(version_age_warning) self.report_warning(version_age_warning)
if self.params.get('allow_unplayable_formats'): if self.params.get('allow_unplayable_formats'):

View File

@ -974,7 +974,7 @@ def parse_options(argv=None):
'_warnings': warnings, '_warnings': warnings,
'_deprecation_warnings': deprecation_warnings, '_deprecation_warnings': deprecation_warnings,
'compat_opts': opts.compat_opts, 'compat_opts': opts.compat_opts,
'update_self': opts.update_self, 'warn_when_outdated': opts.update_self is None,
}) })