[GH-ISSUE #566] Device selection not showing any devices #1261

Closed
opened 2026-03-14 14:09:31 +03:00 by kerem · 7 comments
Owner

Originally created by @Duck-s on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/566

Devices remains blank on the terminal
When pressing D the devices tab opens but there is nothing inside and nothing to select pressing enter does nothing
i can go to the spotify app on my phone and manually change it to spotify_player and that works but i can not change it from within the app

Screenshots
image

Environment

  • OS: Arch (KDE)
  • Application version: 0.19.1
  • Application features: cargo install spotify_player --no-default-features --features pulseaudio-backend,streaming,media-control --locked

Apologies in advance im new
Sorry im new to the linux and github world and am unfamiliar with a lot
I will probably need precise instructions if you need anything (file or command output) but i am happy to give anything required though it may need patience as i will probably need help getting it.

Originally created by @Duck-s on GitHub (Sep 23, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/566 **Devices remains blank on the terminal** When pressing **D** the devices tab opens but there is nothing inside and nothing to select pressing enter does nothing i can go to the spotify app on my phone and manually change it to spotify_player and that works but i can not change it from within the app **Screenshots** ![image](https://github.com/user-attachments/assets/faa1bde5-2e2e-4840-a0e6-2ed1582467df) **Environment** - OS: Arch (KDE) - Application version: 0.19.1 - Application features: cargo install spotify_player --no-default-features --features pulseaudio-backend,streaming,media-control --locked **Apologies in advance im new** Sorry im new to the linux and github world and am unfamiliar with a lot I will probably need precise instructions if you need anything (file or command output) but i am happy to give anything required though it may need patience as i will probably need help getting it.
kerem 2026-03-14 14:09:31 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@sewnie commented on GitHub (Sep 23, 2024):

When spotify_player runs with your own client_id, press D (default shortcut for SwitchDevice command) to get the list of available devices, then press enter (default shortcut for ChooseSelected command) to connect to the selected device.

I think a warning should be added to indicate this within the tui.

<!-- gh-comment-id:2367786554 --> @sewnie commented on GitHub (Sep 23, 2024): > When spotify_player runs with your own client_id, press D (default shortcut for SwitchDevice command) to get the list of available devices, then press enter (default shortcut for ChooseSelected command) to connect to the selected device. I think a warning should be added to indicate this within the tui.
Author
Owner

@aome510 commented on GitHub (Sep 23, 2024):

When spotify_player runs with your own client_id, press D (default shortcut for SwitchDevice command) to get the list of available devices, then press enter (default shortcut for ChooseSelected command) to connect to the selected device.

I think a warning should be added to indicate this within the tui.

there is a similar warning in the log. Agree that it's helpful to have the message in TUI because I saw people open similar issues before (first-time users don't normally check the log). The difficult part is where to display the message

<!-- gh-comment-id:2368388776 --> @aome510 commented on GitHub (Sep 23, 2024): > > When spotify_player runs with your own client_id, press D (default shortcut for SwitchDevice command) to get the list of available devices, then press enter (default shortcut for ChooseSelected command) to connect to the selected device. > > I think a warning should be added to indicate this within the tui. there is a similar warning in the log. Agree that it's helpful to have the message in TUI because I saw people open similar issues before (first-time users don't normally check the log). The difficult part is where to display the message
Author
Owner

@Duck-s commented on GitHub (Sep 23, 2024):

I may be confused.
I have done this I pressed D to get the devices box open and enter does nothing. the devices box is empty and no controls work to switch devices.
Its all set up with my client id and such so that I can change the devices from the mobile app or browser to get audio but not from within the app.

<!-- gh-comment-id:2368919181 --> @Duck-s commented on GitHub (Sep 23, 2024): I may be confused. I have done this I pressed D to get the devices box open and enter does nothing. the devices box is empty and no controls work to switch devices. Its all set up with my client id and such so that I can change the devices from the mobile app or browser to get audio but not from within the app.
Author
Owner

@aome510 commented on GitHub (Sep 24, 2024):

Its all set up with my client id and such so that I can change the devices from the mobile app or browser to get audio but not from within the app.

Does that mean you already followed what described in https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect? Can you provide a log in ~/.cache/spotify_player/?

<!-- gh-comment-id:2371407055 --> @aome510 commented on GitHub (Sep 24, 2024): > Its all set up with my client id and such so that I can change the devices from the mobile app or browser to get audio but not from within the app. Does that mean you already followed what described in https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect? Can you provide a log in `~/.cache/spotify_player/`?
Author
Owner

@Duck-s commented on GitHub (Sep 24, 2024):

I have the cache credentials.json saved and it logs me in perfectly fine it's just devices that won't load anything. I can see what device is currently playing from up by the music at the top but have no ability to change it within the D menu. I'll be a bit before I can give a log I have the pc apart but I'll get that asap sorry.

<!-- gh-comment-id:2371595079 --> @Duck-s commented on GitHub (Sep 24, 2024): I have the cache credentials.json saved and it logs me in perfectly fine it's just devices that won't load anything. I can see what device is currently playing from up by the music at the top but have no ability to change it within the D menu. I'll be a bit before I can give a log I have the pc apart but I'll get that asap sorry.
Author
Owner

@aome510 commented on GitHub (Sep 24, 2024):

client_id is not the cached credentials but the config value you set in app.toml. For example, github.com/aome510/spotify-player@9c47701cd6/examples/app.toml (L2)

If you don't set this value, a default value will be used and you will not be able to see any devices

<!-- gh-comment-id:2371696473 --> @aome510 commented on GitHub (Sep 24, 2024): `client_id` is not the cached credentials but the config value you set in `app.toml`. For example, https://github.com/aome510/spotify-player/blob/9c47701cd6adc45c2d61721ccbdfae54ba67a523/examples/app.toml#L2 If you don't set this value, a default value will be used and you will not be able to see any devices
Author
Owner

@aome510 commented on GitHub (Oct 4, 2024):

@Duck-s do you still have problems with device selection? Otherwise, I will close this issue

<!-- gh-comment-id:2393839943 --> @aome510 commented on GitHub (Oct 4, 2024): @Duck-s do you still have problems with device selection? Otherwise, I will close this issue
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/spotify-player#1261
No description provided.