From 387138410532daad174ed602fd03f4f979cd3d81 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 24 Sep 2026 18:30:10 +0200 Subject: refactor(node): move per-app enrichment out of NodeDaemon The _enrich_*/_reenrich_* methods and _on_enriched become EnrichmentMixin in meshbay_node/enrichment.py, with the two directory helpers only they use. APP_DIR_KEYS stays on NodeDaemon. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-node/tests/test_audio_root_gates_enrichment.py | 2 +- packages/meshbay-node/tests/test_video_root_gates_enrichment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-node/tests') diff --git a/packages/meshbay-node/tests/test_audio_root_gates_enrichment.py b/packages/meshbay-node/tests/test_audio_root_gates_enrichment.py index b8c4dd6..3446be9 100644 --- a/packages/meshbay-node/tests/test_audio_root_gates_enrichment.py +++ b/packages/meshbay-node/tests/test_audio_root_gates_enrichment.py @@ -1,7 +1,7 @@ """ Music-app enrichment (tag/cover extraction, docs/MESHBAY_DESIGN.md §9.8) only ever runs for a group that has an audio_root configured, and only for files -under it — see daemon.py's _enrich_new_audio_entries. Same reasoning as +under it — see enrichment.py's _enrich_new_audio_entries. Same reasoning as Videos' video_root gate (test_video_root_gates_enrichment.py), added later: the original "no root, whole shared tree" call turned out wrong against a real messy library, where everything under every shared folder got mixed diff --git a/packages/meshbay-node/tests/test_video_root_gates_enrichment.py b/packages/meshbay-node/tests/test_video_root_gates_enrichment.py index c39876a..0e5e631 100644 --- a/packages/meshbay-node/tests/test_video_root_gates_enrichment.py +++ b/packages/meshbay-node/tests/test_video_root_gates_enrichment.py @@ -1,7 +1,7 @@ """ Videos-app enrichment (ffprobe/thumbnailing/TMDB, docs/MESHBAY_DESIGN.md §6.5) only ever runs for a group that has a video_root configured, and only for -files under it — see daemon.py's _enrich_new_video_entries. Burning TMDB's +files under it — see enrichment.py's _enrich_new_video_entries. Burning TMDB's rate limit and the node's CPU on an operator's whole shared index before they have chosen which folder is actually their media library would be real, ongoing cost for files never meant to be in the Videos app at all. -- cgit v1.2.3