mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-21 07:28:52 +00:00
remove features and prepare for plugin
This commit is contained in:
@@ -1,14 +1,28 @@
|
||||
# flake8: noqa: F401
|
||||
from .native import JSInterpreter
|
||||
from .common import _JSI_PREFERENCES, _JSI_HANDLERS, JSIWrapper
|
||||
from ._phantomjs import PhantomJSwrapper
|
||||
from . import _deno # ensure jsi registration
|
||||
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')
|
||||
})
|
||||
|
||||
plugin_spec = PluginSpec(
|
||||
module_name='jsinterp',
|
||||
suffix='JSI',
|
||||
destination=jsi_runtimes,
|
||||
plugin_destination=plugin_jsis,
|
||||
)
|
||||
register_plugin_spec(plugin_spec)
|
||||
|
||||
__all__ = [
|
||||
JSInterpreter,
|
||||
PhantomJSwrapper,
|
||||
_JSI_HANDLERS,
|
||||
_JSI_PREFERENCES,
|
||||
JSIWrapper,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user