This commit is contained in:
2026-01-16 04:57:05 -08:00
parent 00bee0011c
commit 0f71ec7873
8 changed files with 446 additions and 137 deletions

View File

@@ -1643,9 +1643,18 @@ class HydrusNetwork(Store):
if not incoming_tags:
return True
try:
existing_tags, _src = self.get_tag(file_hash)
except Exception:
existing_tags = kwargs.get("existing_tags")
if existing_tags is None:
try:
existing_tags, _src = self.get_tag(file_hash)
except Exception:
existing_tags = []
if isinstance(existing_tags, (list, tuple, set)):
existing_tags = [
str(t).strip().lower() for t in existing_tags
if isinstance(t, str) and str(t).strip()
]
else:
existing_tags = []
from SYS.metadata import compute_namespaced_tag_overwrite