diff options
Diffstat (limited to 'packages/meshbay-common/src')
| -rw-r--r-- | packages/meshbay-common/src/meshbay_common/adminop.py | 14 | ||||
| -rw-r--r-- | packages/meshbay-common/src/meshbay_common/protocol.py | 16 |
2 files changed, 2 insertions, 28 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/adminop.py b/packages/meshbay-common/src/meshbay_common/adminop.py index a80ffa9..8638e60 100644 --- a/packages/meshbay-common/src/meshbay_common/adminop.py +++ b/packages/meshbay-common/src/meshbay_common/adminop.py @@ -74,11 +74,6 @@ OP_TMDB_CONFIG = "tmdb_config" # same node need not share the decision to spend TMDB quota and make # outbound requests. Signed for the same reason as tmdb_config. OP_TMDB_ENABLED = "tmdb_enabled" -# Which folder (possibly a subfolder of a shared root) is the Videos app's -# entry point for this group — per-group, like tmdb_enabled above and -# unlike tmdb_config's token/language. Signed like the rest: it decides what -# every member's Videos tab shows. -OP_VIDEO_ROOT = "video_root" # Correcting a wrong automatic TMDB match — signed for the same reason as # tmdb_config: it changes what every member sees for a show/movie, node-wide # (media_cache is shared, not per-viewer), so an unsigned override would let @@ -96,15 +91,6 @@ OP_TMDB_REMATCH = "tmdb_rematch" # 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" -# Which folder(s) are the Photos app's entry points for this group — a -# *set*, unlike OP_VIDEO_ROOT/OP_AUDIO_ROOT above: a photo library is -# routinely scattered across several folders (docs/photos.md §2.1). The -# whole set is signed and replaced in one op, same shape as OP_APPS_ENABLED. -OP_PHOTO_ROOTS = "photo_roots" OP_ROOT_ADD = "root_add" OP_ROOT_REMOVE = "root_remove" # One op for every application's directories. The subject is diff --git a/packages/meshbay-common/src/meshbay_common/protocol.py b/packages/meshbay-common/src/meshbay_common/protocol.py index 5bd1206..1dfa519 100644 --- a/packages/meshbay-common/src/meshbay_common/protocol.py +++ b/packages/meshbay-common/src/meshbay_common/protocol.py @@ -156,8 +156,6 @@ class MNP: SET_SCAN_SETTINGS_ACK = "set_scan_settings_ack" MEDIA_META_REQ = "media_meta_req" # client → node: TMDB metadata for a path MEDIA_META_RESP = "media_meta_resp" # node → client: TMDB metadata (or none) - VIDEO_ROOT = "video_root" # operator → node: which folder is the Videos entry point - VIDEO_ROOT_ACK = "video_root_ack" TMDB_CONFIG = "tmdb_config" # operator → node: set custom TMDB token/language (node-wide) TMDB_CONFIG_ACK = "tmdb_config_ack" # node → everyone: new TMDB config (never the token) TMDB_ENABLED = "tmdb_enabled" # operator → node: enable/disable TMDB for this group @@ -183,15 +181,6 @@ 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" - # Which folder(s) are the Photos app's entry points for this group — a - # *set*, unlike VIDEO_ROOT/AUDIO_ROOT above, since a photo library is - # routinely scattered across several unrelated folders (docs/photos.md §2.1). - PHOTO_ROOTS = "photo_roots" # operator → node: the whole root set, replaced - PHOTO_ROOTS_ACK = "photo_roots_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. @@ -224,9 +213,8 @@ class MNP: ROOT_REMOVE = "root_remove" # operator → node: remove a root from a group ROOT_REMOVE_ACK = "root_remove_ack" # node → operator: confirmed # One message for every application's directories, keyed by the app's own - # name — adding an app adds no message type. VIDEO_ROOT / AUDIO_ROOT / - # PHOTO_ROOTS above are the same instruction under three earlier names and - # are still handled, for clients that predate this. + # name — adding an app adds no message type, and no application has one of + # its own. APP_DIRECTORIES = "app_directories" # operator → node: an app's folder(s) APP_DIRECTORIES_ACK = "app_directories_ack" # Chat's own two: where attachments are written (a destination, so it must |