dtcooper / raspotify

A Spotify Connect client that mostly Just Works™
https://dtcooper.github.io/raspotify
MIT License
4.62k stars 214 forks source link

Raspotify only shows in device list via API after Spotify App selects it #663

Open optikalefx opened 3 months ago

optikalefx commented 3 months ago

Compatible Device

Are you sure?

Compatible OS

Compatible Configuration

Latest Version

Are you sure?

Due Diligence

What happened?

When using the Spotify Web API, Raspotify is not in the device list via API.

deviceResponse = spotify.sp.devices()
    find_ras = lambda v: "raspotify" in v['name']
    raspotify = next(filter(find_ras, deviceResponse['devices']), None)
    return bool(raspotify)

However, it IS showing in the spotify mac app

image

Once I choose Raspotify in the Spotify Mac App, then the Spotify Web Api will return the device and can be used.

Do we have any idea why the Mac App has to first choose Raspotify before it can be a visible device in the API? I've made the API calls using Postman, to rule out any possible issue with Spotipy.

Relevant log output and/or the contents of /etc/raspotify/crash_report if any ( sudo journalctl -u raspotify -b and sudo cat /etc/raspotify/crash_report )

sudo journalctl -u raspotify -b
Jun 19 01:54:37 raspberrypi systemd[1]: Started raspotify.service - Raspotify (Spotify Connect Client).
github-actions[bot] commented 4 days ago

This issue has been marked as stale. It will closed in 7 days if there is no activity.

kimtore commented 4 days ago

@optikalefx,

Please try the latest release and see if it fixes your problem.