From 1d43fa5af883f96af902a29544fc766f5e97fce6 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Sun, 7 Dec 2025 17:37:03 -0600 Subject: [PATCH] [ie/youtube] Improve message when no JS runtime is found (#15266) Closes #15158 Authored by: bashonly --- yt_dlp/extractor/youtube/_video.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.py index 24c4458d61..0ea3729a3d 100644 --- a/yt_dlp/extractor/youtube/_video.py +++ b/yt_dlp/extractor/youtube/_video.py @@ -2914,10 +2914,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor): if not (requested_clients or excluded_clients) and default_clients == self._DEFAULT_JSLESS_CLIENTS: self.report_warning( - f'No supported JavaScript runtime could be found. YouTube extraction without ' - f'a JS runtime has been deprecated, and some formats may be missing. ' - f'See {_EJS_WIKI_URL} for details on installing one. To silence this warning, ' - f'you can use --extractor-args "youtube:player_client=default"', only_once=True) + f'No supported JavaScript runtime could be found. Only deno is enabled by default; ' + f'to use another runtime add --js-runtimes RUNTIME[:PATH] to your command/config. ' + f'YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. ' + f'See {_EJS_WIKI_URL} for details on installing one', only_once=True) if not requested_clients: requested_clients.extend(default_clients)