Plan
Premium
Country
Germany
Device
Desktop-PC
Operating System
Ubuntu 18.04 and Debian 9
My Question or Issue
Dear Spotify-Devs,
I use spotify on a whole bunch of devices, i.a. two linuxboxes with spotify for linux. Playing spotify on these devices works without a problem. However, when both linuxboxes are switched on, other spotify apps (on Android or on Linux) do only see one of these linuxboxes under "available devices".
Both linuxboxes are in the same LAN. One of it runs under Debian 9, the other one under Ubuntu 18.04. A call of spotify -version shows on both devices:
Spotify version 1.1.10.546.ge08ef575, Copyright (c) 2019, Spotify Ltd
In order to find the cause of this weird phenomenon, I used the Spotify-WebAPI to show the device ids:
curl -H "Authorization: Bearer $TOKEN" https://api.spotify.com/v1/me/player/devices
When only the linuxbox called "nuckie" is switched on, I get the following output:
{
"devices" : [ {
"id" : "28ef616848012026f15a60596679f0dc3f576e13",
"is_active" : false,
"is_private_session" : false,
"is_restricted" : false,
"name" : "nuckie",
"type" : "Computer",
"volume_percent" : 73
} ]
}
When only the other linuxbox called "blacky" is switched on, I get the following output:
{
"devices" : [ {
"id" : "28ef616848012026f15a60596679f0dc3f576e13",
"is_active" : true,
"is_private_session" : false,
"is_restricted" : false,
"name" : "blacky",
"type" : "Computer",
"volume_percent" : 100
} ]
When both devices run, the output is exactly the same; only one device is shown. Which device is shown, when both devices are switched on, seems to be determined by random.
As you can see, the device id of both devices is exactly the same. Probably, therefore, one device hides the other device when spotify runs on both devices at the same time.
Is there any possibility to change the device id?
Many thanks for the effort you put in developping the spotify linux client.
Kind regards
codica