1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-05 21:08:33 +00:00
yt-dlp/yt_dlp/jsinterp/__init__.py
2025-05-02 03:59:11 -04:00

28 lines
663 B
Python

# flake8: noqa: F401
from .native import JSInterpreter
from .common import _JSI_PREFERENCES, JSIWrapper
from ._phantomjs import PhantomJSJSI, PhantomJSwrapper
from ._deno import DenoJSI, DenoJSDomJSI
from ..globals import jsi_runtimes, plugin_jsis
from ..plugins import PluginSpec, register_plugin_spec
jsi_runtimes.value.update({
name: value
for name, value in globals().items()
if name.endswith('JSI')
})
register_plugin_spec(PluginSpec(
module_name='jsinterp',
suffix='JSI',
destination=jsi_runtimes,
plugin_destination=plugin_jsis,
))
__all__ = [
JSInterpreter,
PhantomJSwrapper,
_JSI_PREFERENCES,
JSIWrapper,
]