1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-13 13:05:13 +00:00

[ie/youtube] Implement external n/sig solver (#14157)

Closes #14404, Closes #14431, Closes #14680, Closes #14707

Authored by: bashonly, coletdjnz, seproDev, Grub4K

Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: sepro <sepro@sepr0.com>
This commit is contained in:
Simon Sawicki
2025-10-31 23:13:04 +01:00
committed by GitHub
parent d6ee677253
commit 6224a38988
45 changed files with 3387 additions and 1127 deletions

View File

@@ -456,6 +456,41 @@ def create_parser():
'--no-plugin-dirs',
dest='plugin_dirs', action='store_const', const=[],
help='Clear plugin directories to search, including defaults and those provided by previous --plugin-dirs')
general.add_option(
'--js-runtimes',
metavar='RUNTIME[:PATH]',
dest='js_runtimes',
action='callback',
callback=_list_from_options_callback,
type='str',
callback_kwargs={'delim': None},
default=['deno'],
help=(
'Additional JavaScript runtime to enable, with an optional path to the runtime location. '
'This option can be used multiple times to enable multiple runtimes. '
'Supported runtimes: deno, node, bun, quickjs. By default, only "deno" runtime is enabled.'))
general.add_option(
'--no-js-runtimes',
dest='js_runtimes', action='store_const', const=[],
help='Clear JavaScript runtimes to enable, including defaults and those provided by previous --js-runtimes')
general.add_option(
'--remote-components',
metavar='COMPONENT',
dest='remote_components',
action='callback',
callback=_list_from_options_callback,
type='str',
callback_kwargs={'delim': None},
default=[],
help=(
'Remote components to allow yt-dlp to fetch when required. '
'You can use this option multiple times to allow multiple components. '
'Supported values: ejs:npm (external JavaScript components from npm), ejs:github (external JavaScript components from yt-dlp-ejs GitHub). '
'By default, no remote components are allowed.'))
general.add_option(
'--no-remote-components',
dest='remote_components', action='store_const', const=[],
help='Disallow fetching of all remote components, including any previously allowed by --remote-components or defaults.')
general.add_option(
'--flat-playlist',
action='store_const', dest='extract_flat', const='in_playlist', default=False,