d
This commit is contained in:
@@ -55,6 +55,14 @@ class HydrusNetwork(Store):
|
||||
}
|
||||
]
|
||||
|
||||
@property
|
||||
def is_remote(self) -> bool:
|
||||
return True
|
||||
|
||||
@property
|
||||
def prefer_defer_tags(self) -> bool:
|
||||
return True
|
||||
|
||||
def _log_prefix(self) -> str:
|
||||
store_name = getattr(self, "NAME", None) or "unknown"
|
||||
return f"[hydrusnetwork:{store_name}]"
|
||||
|
||||
@@ -27,6 +27,16 @@ class Store(ABC):
|
||||
"""
|
||||
return []
|
||||
|
||||
@property
|
||||
def is_remote(self) -> bool:
|
||||
"""True if the store is a remote service (e.g. Hydrus) rather than local disk."""
|
||||
return False
|
||||
|
||||
@property
|
||||
def prefer_defer_tags(self) -> bool:
|
||||
"""True if the store prefers tags to be applied after the file is added."""
|
||||
return False
|
||||
|
||||
@abstractmethod
|
||||
def add_file(self, file_path: Path, **kwargs: Any) -> str:
|
||||
raise NotImplementedError
|
||||
|
||||
Reference in New Issue
Block a user