mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
remove jitless
This commit is contained in:
parent
076ca745aa
commit
98ae72ff50
5 changed files with 5 additions and 21 deletions
|
@ -212,7 +212,7 @@ ### Metadata
|
|||
### Misc
|
||||
|
||||
* [**pycryptodomex**](https://github.com/Legrandin/pycryptodome)\* - For decrypting AES-128 HLS streams and various other data. Licensed under [BSD-2-Clause](https://github.com/Legrandin/pycryptodome/blob/master/LICENSE.rst)
|
||||
* [**phantomjs**](https://github.com/ariya/phantomjs) - Used in extractors where javascript needs to be run. Licensed under [BSD-3-Clause](https://github.com/ariya/phantomjs/blob/master/LICENSE.BSD)
|
||||
* [**phantomjs**](https://github.com/ariya/phantomjs), [**deno**](https://github.com/denoland/deno/) - Used in extractors where javascript needs to be run. Licensed under [BSD-3-Clause](https://github.com/ariya/phantomjs/blob/master/LICENSE.BSD) and [MIT](https://github.com/xattr/xattr/blob/master/LICENSE.txt) respectively
|
||||
* [**secretstorage**](https://github.com/mitya57/secretstorage)\* - For `--cookies-from-browser` to access the **Gnome** keyring while decrypting cookies of **Chromium**-based browsers on **Linux**. Licensed under [BSD-3-Clause](https://github.com/mitya57/secretstorage/blob/master/LICENSE)
|
||||
* Any external downloader that you want to use with `--downloader`
|
||||
|
||||
|
@ -790,7 +790,7 @@ ## Workarounds:
|
|||
be used along with --min-sleep-interval
|
||||
--sleep-subtitles SECONDS Number of seconds to sleep before each
|
||||
subtitle download
|
||||
--jsi-preference Preferred JS interpreters to use during
|
||||
--jsi-preference JSI Preferred JS interpreters to use during
|
||||
extraction. Can be given as comma-separated
|
||||
values
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
)
|
||||
from yt_dlp.cookies import YoutubeDLCookieJar
|
||||
from yt_dlp.jsinterp.common import ExternalJSI, _ALL_FEATURES
|
||||
from yt_dlp.jsinterp._deno import DenoJSI, DenoJITlessJSI, DenoJSDomJSI
|
||||
from yt_dlp.jsinterp._deno import DenoJSI, DenoJSDomJSI
|
||||
from yt_dlp.jsinterp._phantomjs import PhantomJSJSI
|
||||
from yt_dlp.jsinterp._helper import prepare_wasm_jsmodule
|
||||
|
||||
|
@ -206,10 +206,6 @@ class TestDeno(Base.TestExternalJSI):
|
|||
_JSI_CLASS = DenoJSI
|
||||
|
||||
|
||||
class TestDenoJITless(Base.TestExternalJSI):
|
||||
_JSI_CLASS = DenoJITlessJSI
|
||||
|
||||
|
||||
class TestDenoDom(Base.TestExternalJSI):
|
||||
_JSI_CLASS = DenoJSDomJSI
|
||||
|
||||
|
|
|
@ -437,6 +437,8 @@ class YoutubeDL:
|
|||
Actual sleep time will be a random float from range
|
||||
[sleep_interval; max_sleep_interval].
|
||||
sleep_interval_subtitles: Number of seconds to sleep before each subtitle download
|
||||
jsi_preference: Preferred JS interpreters to use during extraction. Can be
|
||||
given as comma-separated values.
|
||||
listformats: Print an overview of available video formats and exit.
|
||||
list_thumbnails: Print a table of all thumbnails and exit.
|
||||
match_filter: A function that gets called for every video with the signature
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
from .native import JSInterpreter
|
||||
from .common import _JSI_PREFERENCES, _JSI_HANDLERS, JSIWrapper
|
||||
from ._phantomjs import PhantomJSwrapper
|
||||
from . import _deno
|
||||
|
||||
|
||||
__all__ = [
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
from ..utils import (
|
||||
ExtractorError,
|
||||
Popen,
|
||||
classproperty,
|
||||
int_or_none,
|
||||
shell_quote,
|
||||
unified_timestamp,
|
||||
|
@ -58,18 +57,6 @@ def execute(self, jscode, video_id=None, note='Executing JS in Deno'):
|
|||
return self._run_deno(cmd)
|
||||
|
||||
|
||||
@register_jsi
|
||||
class DenoJITlessJSI(DenoJSI):
|
||||
_SUPPORTED_FEATURES = {'location'}
|
||||
_BASE_PREFERENCE = 6
|
||||
_EXE_NAME = DenoJSI._EXE_NAME
|
||||
_DENO_FLAGS = ['--cached-only', '--no-prompt', '--no-check', '--v8-flags=--jitless,--noexpose-wasm']
|
||||
|
||||
@classproperty
|
||||
def exe_version(cls):
|
||||
return DenoJSI.exe_version
|
||||
|
||||
|
||||
@register_jsi
|
||||
class DenoJSDomJSI(DenoJSI):
|
||||
_SUPPORTED_FEATURES = {'wasm', 'location', 'dom', 'cookies'}
|
||||
|
|
Loading…
Reference in a new issue