huge refactor of plugin system
This commit is contained in:
@@ -12,7 +12,7 @@ from typing import Any, Dict, Iterable, List, Optional, Callable, Tuple
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from API.HTTP import HTTPClient, _download_direct_file
|
||||
from API.alldebrid import AllDebridClient, parse_magnet_or_hash, is_torrent_file
|
||||
from plugins.alldebrid.api import AllDebridClient, parse_magnet_or_hash, is_torrent_file
|
||||
from ProviderCore.base import Provider, SearchResult
|
||||
from SYS.provider_helpers import TableProviderMixin
|
||||
from SYS.item_accessors import get_field as _extract_value
|
||||
@@ -859,7 +859,7 @@ class AllDebrid(TableProviderMixin, Provider):
|
||||
return None
|
||||
|
||||
try:
|
||||
from API.alldebrid import AllDebridClient
|
||||
from plugins.alldebrid.api import AllDebridClient
|
||||
|
||||
client = AllDebridClient(api_key)
|
||||
except Exception as exc:
|
||||
@@ -1400,7 +1400,7 @@ class AllDebrid(TableProviderMixin, Provider):
|
||||
view = view or "folders"
|
||||
|
||||
try:
|
||||
from API.alldebrid import AllDebridClient
|
||||
from plugins.alldebrid.api import AllDebridClient
|
||||
|
||||
client = AllDebridClient(api_key)
|
||||
except Exception as exc:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user