toastify icon indicating copy to clipboard operation
toastify copied to clipboard

[PSA] TOASTIFY IS PARTIALLY OUT OF SERVICE

Open aleab opened this issue 5 years ago • 31 comments

CURRENT STATE OF TOASTIFY

As of v1.10.11 Toastify can fetch and show the current song's artist and title using a temporary workaround. The album art won't update and the song progress bar has been disabled altogether for the time being. Hotkeys are still working fine and you'll still be able to control Spotify's playback with them.


THE ISSUE

The unofficial local API served by the Spotify client on a local server needs an OAuth token to be used. The token is retrieved from https://open.spotify.com/token. Currently, Spotify only returns unusable fake tokens, so the local API can't be used anymore to get status updates.

Additionally, since Spotify's version 1.0.87.*, the client doesn't create the local server anymore. This latest change makes Toastify fail to start (whereas before version 1.0.87 it started but the toast wouldn't work), because it obviously can't connect to the non-existing local server (before version 1.0.87, it managed to connect successfully, but failed the authentication whenever it tried to get a status update).

POSSIBLE SOLUTION

The only viable possible solution is to use the official Web API instead, in particular the player or player/currently-playing endpoints to get status updates.

The problem with this solution is that Toastify would need to make a lot of web requests to the same endpoint in a very limited time period to be able to update the toast in an enjoyably short (from a UX point of view) amount of time. As a comparison SpotifyAPI-NET makes 20 status update requests per second by default (Toastify reduced that to 2 requests per second).


(Additional details can be found in issue #82)

aleab avatar Aug 08 '18 23:08 aleab