diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-24 22:24:52 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-24 22:24:52 +0200 |
| commit | 665fb2004e55b72ea483aa50fea81f6a6fd9c322 (patch) | |
| tree | cc412f776cf993fc5c242750787c9e5c81aa3241 /packages/meshbay-common/src/meshbay_common/__init__.py | |
| parent | 626365668508790dee70ab192a7d6c6f14725bf4 (diff) | |
| download | meshbay-665fb2004e55b72ea483aa50fea81f6a6fd9c322.tar.gz | |
feat(node): add audio_root, gate Music enrichment on it like video_root
musicbay.md's original call — Music needs no root, tag reads are cheap so
just cover the whole shared tree — didn't hold up against a real messy
library: everything under every shared folder got mixed together with no
way to scope Music down to an actual music collection. This adds an
audio_root setting, symmetric to video_root in every respect: signed
operator op (audio_root/audio_root_ack, MNP bumped to 0.10), validated
against a real directory in the group's own roots before a signature is
even asked for, gates tag/cover enrichment exactly like video_root gates
ffprobe/TMDB (nothing runs until it's set, only files under it once it
is), and a set/change fires a one-off sweep of whatever the folder already
contains.
The old trigger — sweep everything the instant "music" joins enabled_apps
— is gone along with the root-less design it belonged to; setting
audio_root is now the trigger, mirroring set_video_root's
enrich_video_root_fn exactly.
Test coverage mirrors the video_root suite: policy (refuse before a
signature round trip, accept/store correctly) and the enrichment gate
itself (nothing without a root, only files under it, sweep on set).
Diffstat (limited to 'packages/meshbay-common/src/meshbay_common/__init__.py')
| -rw-r--r-- | packages/meshbay-common/src/meshbay_common/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/__init__.py b/packages/meshbay-common/src/meshbay_common/__init__.py index ecf51fd..b37de8e 100644 --- a/packages/meshbay-common/src/meshbay_common/__init__.py +++ b/packages/meshbay-common/src/meshbay_common/__init__.py @@ -37,5 +37,11 @@ __version__ = "0.7.0" # way a TMDB poster or MusicBrainz cover is cached. Additive: an older # client never sends the request, and simply can't play those two formats, # same as before this existed. -MNP_VERSION = "0.9" +# 0.10: added `audio_root`/`_ack` — the Music app's own entry point, same +# shape as `video_root`/`_ack`. Reverses musicbay.md's original "no root, +# whole shared tree" call: a real messy library showed that call was +# wrong, and Music now requires one before showing/enriching anything, +# exactly like Videos. Additive at the protocol level: an older client +# never sends the op and never expects the field. +MNP_VERSION = "0.10" MHP_VERSION = "0.1" |