mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-08 15:12:47 +01:00
[ie/youtube] Improve message when no JS runtime is found (#15266)
Closes #15158 Authored by: bashonly
This commit is contained in:
@@ -2914,10 +2914,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
|
|
||||||
if not (requested_clients or excluded_clients) and default_clients == self._DEFAULT_JSLESS_CLIENTS:
|
if not (requested_clients or excluded_clients) and default_clients == self._DEFAULT_JSLESS_CLIENTS:
|
||||||
self.report_warning(
|
self.report_warning(
|
||||||
f'No supported JavaScript runtime could be found. YouTube extraction without '
|
f'No supported JavaScript runtime could be found. Only deno is enabled by default; '
|
||||||
f'a JS runtime has been deprecated, and some formats may be missing. '
|
f'to use another runtime add --js-runtimes RUNTIME[:PATH] to your command/config. '
|
||||||
f'See {_EJS_WIKI_URL} for details on installing one. To silence this warning, '
|
f'YouTube extraction without a JS runtime has been deprecated, and some formats may be missing. '
|
||||||
f'you can use --extractor-args "youtube:player_client=default"', only_once=True)
|
f'See {_EJS_WIKI_URL} for details on installing one', only_once=True)
|
||||||
|
|
||||||
if not requested_clients:
|
if not requested_clients:
|
||||||
requested_clients.extend(default_clients)
|
requested_clients.extend(default_clients)
|
||||||
|
|||||||
Reference in New Issue
Block a user