Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flag to display connect device as group #1302

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

JoeyEamigh
Copy link
Contributor

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!

@roderickvd
Copy link
Member

Looks great to me! Unless there are any other comments, good to merge.

@roderickvd roderickvd merged commit cdff6da into librespot-org:dev Jun 17, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants