aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-common/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-common/src')
-rw-r--r--packages/meshbay-common/src/meshbay_common/__init__.py8
-rw-r--r--packages/meshbay-common/src/meshbay_common/adminop.py4
-rw-r--r--packages/meshbay-common/src/meshbay_common/protocol.py4
3 files changed, 15 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"
diff --git a/packages/meshbay-common/src/meshbay_common/adminop.py b/packages/meshbay-common/src/meshbay_common/adminop.py
index f0a79fe..d09b95e 100644
--- a/packages/meshbay-common/src/meshbay_common/adminop.py
+++ b/packages/meshbay-common/src/meshbay_common/adminop.py
@@ -92,6 +92,10 @@ OP_MUSICBRAINZ_CONFIG = "musicbrainz_config"
# the lesson was already learned once). Signed for the same reason as
# tmdb_enabled.
OP_MUSICBRAINZ_ENABLED = "musicbrainz_enabled"
+# Which folder is the Music app's entry point for this group — same shape as
+# OP_VIDEO_ROOT above, added later once a real messy library showed the
+# "no root, whole shared tree" simplification didn't hold up.
+OP_AUDIO_ROOT = "audio_root"
OP_ROOT_ADD = "root_add"
OP_ROOT_REMOVE = "root_remove"
OP_GROUP_ATTACH = "group_attach"
diff --git a/packages/meshbay-common/src/meshbay_common/protocol.py b/packages/meshbay-common/src/meshbay_common/protocol.py
index 8f29c38..24fea8f 100644
--- a/packages/meshbay-common/src/meshbay_common/protocol.py
+++ b/packages/meshbay-common/src/meshbay_common/protocol.py
@@ -119,6 +119,10 @@ class MNP:
# TMDB poster or a MusicBrainz cover.
AUDIO_TRANSCODE_REQ = "audio_transcode_req" # client → node: transcode this file id
AUDIO_TRANSCODE_RESP = "audio_transcode_resp" # node → client: cache hash/size/mime
+ # Which folder is the Music app's entry point for this group — same
+ # shape as VIDEO_ROOT above.
+ AUDIO_ROOT = "audio_root" # operator → node: which folder is the Music entry point
+ AUDIO_ROOT_ACK = "audio_root_ack"
# Device linking. A new device files a request bound to a code it displays;
# an already-pinned device of the same account approves it. Neither the hub
# nor the node can produce the countersignature.