cleanup and rename provider to plugin
This commit is contained in:
@@ -11,8 +11,8 @@ from urllib.parse import quote
|
||||
from API.requests_client import get_requests_session
|
||||
from SYS.utils import ffprobe as probe_media_metadata
|
||||
|
||||
from ProviderCore.base import Provider, SearchResult
|
||||
from SYS.provider_helpers import TableProviderMixin
|
||||
from PluginCore.base import Provider, SearchResult
|
||||
from SYS.plugin_helpers import TablePluginMixin
|
||||
from SYS.logger import log
|
||||
|
||||
_MATRIX_INIT_CHECK_CACHE: Dict[str,
|
||||
@@ -276,7 +276,7 @@ def _matrix_health_check(*,
|
||||
return False, str(exc)
|
||||
|
||||
|
||||
class Matrix(TableProviderMixin, Provider):
|
||||
class Matrix(TablePluginMixin, Provider):
|
||||
"""Matrix (Element) room provider with file uploads and selection.
|
||||
|
||||
This provider uses the new table system (strict ResultTable adapter pattern) for
|
||||
|
||||
@@ -22,7 +22,7 @@ from SYS.command_parsing import (
|
||||
normalize_to_list as _normalize_to_list,
|
||||
)
|
||||
from SYS import pipeline as ctx
|
||||
from ProviderCore.registry import get_plugin, get_plugin_for_url
|
||||
from PluginCore.registry import get_plugin, get_plugin_for_url
|
||||
|
||||
_MATRIX_PENDING_ITEMS_KEY = "matrix_pending_items"
|
||||
_MATRIX_PENDING_TEXT_KEY = "matrix_pending_text"
|
||||
|
||||
Reference in New Issue
Block a user