Spotify
The Spotify integration has Ryot check your Spotify recently played tracks regularly and record each new play as a completed song, with when you played it and the track’s length. This integration needs Ryot Pro.
To bring over your listening history from before, use the Spotify import.
Before you start
Section titled “Before you start”Your server administrator needs to register Ryot with Spotify once:
-
Open the Spotify developer dashboard and create an app that uses the Web API.
-
Add this redirect URI to the app exactly:
<FRONTEND_URL>/api/oauth-connections/providers/ryot/media/spotify/callbackReplace
<FRONTEND_URL>with the value ofFRONTEND_URLon your Ryot server. Spotify only acceptshttps://addresses, orhttp://127.0.0.1andhttp://[::1]for local testing, soFRONTEND_URLmust be one of those. -
Set
RYOT_PLUGIN__RYOT__MEDIA__SPOTIFY_CLIENT_IDandRYOT_PLUGIN__RYOT__MEDIA__SPOTIFY_CLIENT_SECRETon the Ryot server to the app’s client ID and secret, and restart Ryot. The same keys also let Ryot look up music on Spotify.
A Spotify app in development mode only works for up to five Spotify accounts, which you add in the dashboard under User Management. The app owner needs Spotify Premium. Other accounts get an error when they try to connect.
The server also needs Ryot Pro and a TMDB access token. See Movies and shows.
Set it up
Section titled “Set it up”- In Ryot, open Settings → Integrations, select Connect a service and choose Spotify.
- Under Spotify account, select Connect and approve Ryot in the Spotify window that opens. If nothing opens, allow pop-ups for Ryot.
- Select Continue, then Connect.
What gets synced
Section titled “What gets synced”- Each song you played, recorded as completed at the time you played it, with Spotify as the source.
- The first check brings in up to your 50 most recent plays.
- Podcasts and other episodes are not recorded.
Limits to know about
Section titled “Limits to know about”- Spotify returns at most the last 50 plays. If you play more than 50 songs between two checks, the older ones are missed.
- Two Spotify integrations for the same Spotify account record every play twice.
- Importing a Spotify download for days this integration already covered records those plays twice.
Troubleshooting
Section titled “Troubleshooting”Every check fails. The connection has expired or was revoked in Spotify. Open the integration and select Connect again under Spotify account. Turn on Disable on continuous errors if you want Ryot to switch the integration off and notify you when this happens.
“This service isn’t set up for connecting on this server.” The Spotify client ID or secret is missing on the server. See Before you start.
Connecting fails with an error from Spotify. Your Spotify account is not on the app’s User Management list, or the redirect URI does not match exactly.