Open Tedall opened 5 years ago
Same problem with squeezelite
And with stream player (http://ip:9000/stream.mp3)
Hello,
I am not available to continue this project currently. Feel free to do a pull request 😉
If I had time I would start to investigate to call these cases with the official RPC API just to check if a fix can be done, because finally my API is only an over layer of the official API.
Best regards,
Emmanuel
In a mixed environment with several squeezebox radios and two squeezelite-players (based on max2play), the UUIDs of the squeezelite-players are always NULL and the very first player is returned in the JSON package multiple times (i.e. two times as for each active squeezelite-player).
Output of /players (excerpt). Please not the difference in seconds_played. Maybe it would be a workaround to use the MAC address instead of the UUID as identifier for api-calls (similar to the squeezebox CLI)?
{"uuid":null,"name":"LivingRoom","id":"b8:27:eb:XX:XX:XX","ip":"192.168.188.64:40156","model":"SqueezeLite","firmware_version":"Max2Play v1.0.2 based on v1.8.4-726","signal_strength":0,"play_state":"play","mixer":{"power":"on","volume":"10","bass":"50","treble":"50"},"song_currently_played":{"index_in_playlist":"24","seconds_played":9.3465001449585,"duration":226.25,"artist":"***","album":"***","title":"***","is_remote":false,"path":"***.mp3"}},{"uuid":null,"name":"LivingRoom","id":"b8:27:eb:XX:XX:XX","ip":"192.168.188.64:40156","model":"SqueezeLite","firmware_version":"Max2Play v1.0.2 based on v1.8.4-726","signal_strength":0,"play_state":"play","mixer":{"power":"on","volume":"10","bass":"50","treble":"50"},"song_currently_played":{"index_in_playlist":"24","seconds_played":9.40960620498657,"duration":226.25,"artist":"***","album":"***","title":"***","is_remote":false,"path":"***.mp3"}}]