From d3e2e92dc31afa565d4aa5ff43e605689ce530e1 Mon Sep 17 00:00:00 2001 From: Markus Zehnder Date: Mon, 30 Mar 2026 15:04:52 +0200 Subject: [PATCH] feat: add media-player stable_id_support option Bit-field indicating if the `browse` and `search` commands support stable media IDs: - Bit 0: `browse` always returns stable ids. - Bit 1: `browse` supports stable ids with the `stable_ids` parameter. - Bit 2: `search` always returns stable ids. - Bit 3: `search` returns stable ids with the `stable_ids` parameter. Default if not provided: `browse` and `search` always return stable IDs (Bit 0 | Bit 2) --- src/entity.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/entity.rs b/src/entity.rs index 6164146..41cdd78 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -534,6 +534,15 @@ pub enum MediaPlayerOptionField { SimpleCommands, /// Number of available volume steps for the set volume command and UI controls. VolumeSteps, + /// Bit-field indicating if the `browse` and `search` commands support stable media IDs: + /// + /// - Bit 0: `browse` always returns stable ids. + /// - Bit 1: `browse` supports stable ids with the `stable_ids` parameter. + /// - Bit 2: `search` always returns stable ids. + /// - Bit 3: `search` returns stable ids with the `stable_ids` parameter. + /// + /// Default if not provided: `browse` and `search` always return stable IDs (Bit 0 | Bit 2) + StableIdSupport, } /// Media player media content types.