mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-19 00:03:36 +00:00
Index Jellyfin metadata and tags in Meilisearch
This commit is contained in:
+13
-2
@@ -42,11 +42,22 @@ class Meili:
|
||||
))
|
||||
self._check(self.session.put(
|
||||
f"{self.url}/indexes/{self.index}/settings/filterable-attributes",
|
||||
json=["media_id", "title", "caption_model", "caption_route", "route_model"],
|
||||
json=[
|
||||
"media_id",
|
||||
"title",
|
||||
"caption_model",
|
||||
"caption_route",
|
||||
"route_model",
|
||||
"source_kind",
|
||||
"jellyfin_item_id",
|
||||
"jellyfin_library_id",
|
||||
"jellyfin_item_type",
|
||||
"jellyfin_tags",
|
||||
],
|
||||
))
|
||||
self._check(self.session.put(
|
||||
f"{self.url}/indexes/{self.index}/settings/searchable-attributes",
|
||||
json=["title", "caption"],
|
||||
json=["title", "caption", "jellyfin_tags"],
|
||||
))
|
||||
|
||||
def add_documents(self, documents: list[dict]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user