From 037ab1bba7712b35dcf2e93c338d10ac8fad1813 Mon Sep 17 00:00:00 2001 From: Sleeps Date: Wed, 7 Oct 2026 12:35:37 +0100 Subject: [PATCH] Require matching Jellyfin media source before restoring AI metadata --- scene_search/jellyfin_index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene_search/jellyfin_index.py b/scene_search/jellyfin_index.py index 9089296..8fb45c9 100644 --- a/scene_search/jellyfin_index.py +++ b/scene_search/jellyfin_index.py @@ -747,6 +747,8 @@ def _index_library( and str(existing["source_path"] or "") == source_path_text and int(existing["size_bytes"] or 0) == size_bytes and str(existing["model_id"] or "") == settings.model_id + and str(existing["jellyfin_media_source_id"] or "") + == str(media_source_id or "") and str(existing["jellyfin_tags"] or "") == tags_json ): annotations = _load_frame_annotations(str(existing["id"]))