This commit is contained in:
2026-01-31 23:41:47 -08:00
parent 753cdfb196
commit 95748698fa
15 changed files with 218 additions and 128 deletions

View File

@@ -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}]"

View File

@@ -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