soulsync/core/media_server
Broque Thomas 971d683ebd C1: Migrate status-check dispatch sites to engine
Two sites in web_server.py replaced:
- /status route's media-server connectivity check (4-way if/elif
  for plex/jellyfin/navidrome/soulsync) → engine.is_connected()
- /api/playlists endpoint's server_connected check (3-way if/elif)
  → engine.is_connected()

Engine reads active_server config + dispatches to the right client
with internal connection caching preserved (the underlying clients
all cache is_connected() calls).

Engine constructor now accepts a pre-built clients={...} dict so
web_server.py wires the same instances as its existing per-client
globals — no double-init.

Suite still green. Per-server clients still accessible via
engine.client(name) for source-specific reaches.
2026-05-04 21:25:20 -07:00
..
__init__.py Phase B: Add MediaServerEngine skeleton 2026-05-04 21:14:17 -07:00
contract.py Phase 0: Add MediaServerClient contract + registry 2026-05-04 20:49:25 -07:00
engine.py C1: Migrate status-check dispatch sites to engine 2026-05-04 21:25:20 -07:00
registry.py Phase 0: Add MediaServerClient contract + registry 2026-05-04 20:49:25 -07:00