[PR #1302] [MERGED] add flag to display connect device as group #1329

Closed
opened 2026-02-27 20:02:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/1302
Author: @JoeyEamigh
Created: 6/16/2024
Status: Merged
Merged: 6/17/2024
Merged by: @roderickvd

Base: devHead: add-group-flag


📝 Commits (1)

  • 180ffac adding flag to show connect device as group

📊 Changes

5 files changed (+49 additions, -1 deletions)

View changed files

📝 connect/src/config.rs (+2 -0)
discovery/examples/discovery_group.rs (+22 -0)
📝 discovery/src/lib.rs (+7 -0)
📝 discovery/src/server.rs (+9 -1)
📝 src/main.rs (+9 -0)

📄 Description

This PR adds support for the groupStatus flag of the Spotify ZeroConf API and a flag in the CLI to set it.

Motivation:
This allows differentiating between single and group devices when you have multiple Librespot instances or Connect devices on your network.

Notes:
The ZeroConf docs show GROUP and NONE as valid options for groupStatus.
There was no obvious short flag to set for the new group flag, so no short flag was set.

Verifying:
The new example at discovery/discovery_group.rs.
The command cargo run -- --name "Librespot Group" --group.

Example:
image

Let me know if you would like any changes!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/librespot-org/librespot/pull/1302 **Author:** [@JoeyEamigh](https://github.com/JoeyEamigh) **Created:** 6/16/2024 **Status:** ✅ Merged **Merged:** 6/17/2024 **Merged by:** [@roderickvd](https://github.com/roderickvd) **Base:** `dev` ← **Head:** `add-group-flag` --- ### 📝 Commits (1) - [`180ffac`](https://github.com/librespot-org/librespot/commit/180ffacde19c696e140d07f86fb2fe78f8137bb9) adding flag to show connect device as group ### 📊 Changes **5 files changed** (+49 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `connect/src/config.rs` (+2 -0) ➕ `discovery/examples/discovery_group.rs` (+22 -0) 📝 `discovery/src/lib.rs` (+7 -0) 📝 `discovery/src/server.rs` (+9 -1) 📝 `src/main.rs` (+9 -0) </details> ### 📄 Description This PR adds support for the `groupStatus` flag of the Spotify ZeroConf API and a flag in the CLI to set it. Motivation: This allows differentiating between single and group devices when you have multiple Librespot instances or Connect devices on your network. Notes: The [ZeroConf docs](https://developer.spotify.com/documentation/commercial-hardware/implementation/guides/zeroconf) show `GROUP` and `NONE` as valid options for `groupStatus`. There was no obvious short flag to set for the new `group` flag, so no short flag was set. Verifying: The new example at `discovery/discovery_group.rs`. The command `cargo run -- --name "Librespot Group" --group`. Example: ![image](https://github.com/librespot-org/librespot/assets/55670930/a3053c41-49e9-4260-88f1-fad352db7bb0) Let me know if you would like any changes! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:02:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#1329
No description provided.