cleanup and rename provider to plugin
This commit is contained in:
@@ -10,7 +10,7 @@ from datetime import datetime, timedelta
|
||||
from urllib.parse import urlparse, parse_qs
|
||||
from pathlib import Path
|
||||
from SYS.cmdlet_spec import Cmdlet, CmdletArg, parse_cmdlet_args
|
||||
from ProviderCore.registry import get_plugin, get_plugin_for_url, list_plugin_names_with_capability
|
||||
from PluginCore.registry import get_plugin, get_plugin_for_url, list_plugin_names_with_capability
|
||||
from SYS.logger import debug, get_thread_stream, is_debug_enabled, set_debug, set_thread_stream
|
||||
from SYS.result_table import Table
|
||||
from plugins.mpv.mpv_ipc import MPV
|
||||
|
||||
@@ -1170,7 +1170,7 @@ def _infer_hydrus_store_from_url_target(*, target: str, config: dict) -> Optiona
|
||||
is_hydrus_backend = backend_type == "hydrusnetwork" or backend_class == "hydrusnetwork"
|
||||
if not is_hydrus_backend:
|
||||
try:
|
||||
from ProviderCore.registry import get_plugin
|
||||
from PluginCore.registry import get_plugin
|
||||
|
||||
hydrus_provider = get_plugin("hydrusnetwork", config)
|
||||
checker = getattr(hydrus_provider, "is_backend", None) if hydrus_provider is not None else None
|
||||
|
||||
@@ -70,7 +70,7 @@ from SYS.config import load_config, reload_config # noqa: E402
|
||||
from SYS.logger import set_debug, debug, set_thread_stream # noqa: E402
|
||||
from SYS.repl_queue import enqueue_repl_command # noqa: E402
|
||||
from SYS.utils import format_bytes # noqa: E402
|
||||
from ProviderCore.registry import get_plugin, get_plugin_class # noqa: E402
|
||||
from PluginCore.registry import get_plugin, get_plugin_class # noqa: E402
|
||||
from tool.ytdlp import get_display_format_id, get_selection_format_id # noqa: E402
|
||||
|
||||
REQUEST_PROP = "user-data/medeia-pipeline-request"
|
||||
|
||||
Reference in New Issue
Block a user