mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Support partial Meili document updates
This commit is contained in:
@@ -76,6 +76,19 @@ class Meili:
|
||||
json=documents,
|
||||
))
|
||||
|
||||
def update_documents(self, documents: list[dict]) -> None:
|
||||
"""Partially update existing documents without replacing omitted fields."""
|
||||
if not documents:
|
||||
return
|
||||
self.ensure_index()
|
||||
self._check(
|
||||
self.session.post(
|
||||
f"{self.url}/indexes/{self.index}/documents",
|
||||
params={"primaryKey": "id"},
|
||||
json=documents,
|
||||
)
|
||||
)
|
||||
|
||||
def delete_jellyfin_libraries(self, library_ids: list[str]) -> None:
|
||||
if not library_ids:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user