mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
jsi pref
This commit is contained in:
parent
cd702571e8
commit
ecc1c379e6
2 changed files with 7 additions and 1 deletions
|
@ -167,7 +167,6 @@ def execute(self, jscode, video_id=None, note='Executing JS in Deno with jsdom',
|
|||
onchange: null,
|
||||
orientation: {{angle: 0, type: 'landscape-primary', onchange: null}},
|
||||
pixelDepth: 24,
|
||||
width: 1920,
|
||||
}}
|
||||
Object.defineProperty(document.body, 'clientWidth', {{value: 1903}});
|
||||
Object.defineProperty(document.body, 'clientHeight', {{value: 2000}});
|
||||
|
|
|
@ -1138,6 +1138,13 @@ def _alias_callback(option, opt_str, value, parser, opts, nargs):
|
|||
'--sleep-subtitles', metavar='SECONDS',
|
||||
dest='sleep_interval_subtitles', default=0, type=int,
|
||||
help='Number of seconds to sleep before each subtitle download')
|
||||
workarounds.add_option(
|
||||
'--jsi-preference',
|
||||
metavar='JSI', dest='jsi_preference', default=[], type='str', action='callback',
|
||||
callback=_list_from_options_callback,
|
||||
help=(
|
||||
'Preferred JS interpreters to use during extraction. Can be given as comma-separated values.')
|
||||
)
|
||||
|
||||
verbosity = optparse.OptionGroup(parser, 'Verbosity and Simulation Options')
|
||||
verbosity.add_option(
|
||||
|
|
Loading…
Reference in a new issue