f
This commit is contained in:
@@ -24,7 +24,7 @@ class SearchResult:
|
||||
size_bytes: Optional[int] = None
|
||||
tag: set[str] = field(default_factory=set) # Searchable tag values
|
||||
columns: List[Tuple[str, str]] = field(default_factory=list) # Display columns
|
||||
selection_action: Optional[Dict[str, Any]] = None
|
||||
selection_action: Optional[List[str]] = None
|
||||
selection_args: Optional[List[str]] = None
|
||||
full_metadata: Dict[str, Any] = field(default_factory=dict) # Extra metadata
|
||||
|
||||
@@ -150,7 +150,7 @@ class Provider(ABC):
|
||||
).lower()
|
||||
|
||||
@classmethod
|
||||
def config(cls) -> List[Dict[str, Any]]:
|
||||
def config_schema(cls) -> List[Dict[str, Any]]:
|
||||
"""Return configuration schema for this provider.
|
||||
|
||||
Returns a list of dicts, each defining a field:
|
||||
@@ -228,7 +228,7 @@ class Provider(ABC):
|
||||
_ = config
|
||||
return 0
|
||||
|
||||
def handle_url(self, url: str, *, output_dir: Optional[Path] = None) -> Tuple[bool, Optional[Path]]:
|
||||
def handle_url(self, url: str, *, output_dir: Optional[Path] = None) -> Tuple[bool, Optional[Path | Dict[str, Any]]]:
|
||||
"""Optional provider override to parse and act on URLs."""
|
||||
|
||||
_ = url
|
||||
|
||||
Reference in New Issue
Block a user