Spotify wont accept my username and password again

The API didn’t change, so that part of the code should be fine.
Seems the plugin uses https://api.spotify.com/v1/ which is still current and works (see screenshot)

As far as i can see, the solution is with Volumio. As they provide/generate the accesstoken which is currently failing.

ControllerSpop.prototype.refreshAccessToken = function () {
    var self = this;
    var defer = libQ.defer();

    var refreshToken = self.config.get('refresh_token', 'none');
    if (refreshToken !== 'none' && refreshToken !== null && refreshToken !== undefined) {
        superagent.post('https://oauth-performer.dfs.volumio.org/spotify/accessToken')
            .send({refreshToken: refreshToken})
            .then(function (results) {
                if (results && results.body && results.body.accessToken) {
                    defer.resolve(results)
                } else {
                    defer.resject('No access token received');
                }
            })
            .catch(function (err) {
                self.logger.info('An error occurred while refreshing Spotify Token ' + err);
            });
    }

    return defer.promise;
};

2 Likes

Hi All, I overhauled the current Volumio Spotify plug-in many years ago as a way of learning how to develop with Node.js. I was taking time off between gigs, but back in the thick of it working in Enterprise software sales now.

I believe the reason the Spotify plug-in is failing is because it relies on the SPOP deamon, a C program that uses Libspotify. Libspotify was deprecated back in 2017 by Spotify, so we knew this day would be coming.

One approach worth looking at is how Michael Herger, the Swiss-based Logitech engineer who single-handedly maintains the Logitech Media Server, created his Spotty plug-in for the LMS: GitHub - michaelherger/Spotty-Plugin: A Spotify plugin for the Logitech Media Server and Squeezebox

He is using Librespot, which does not depend upon Libspotify. He therefore exposes the LMS as a Spotify Connect client. But the way he does this makes Spotify completely integrated in the LMS UI. He also does some other very clever things, like infers Spotify folder structures whereas the Spotify Web API doesn’t support folders. He’s a much better engineer than me. :slight_smile:

So since there is an LMS plugin for Volumio, in principle people can install it, the Spotty plug-in into it, and you should be back in business. I haven’t tried it yet so I can’t verify that. I have numerous Raspberry Pis and DACs, some running Volumio, some piCorePlayer with the LMS and Squeezelite. I just verified the LMS Spotty plug-in is still working, as it did not use Libspotify.

I used to work a lot with the open-source Drupal system, as well as working as a Sales Engineer at Acquia, which provides commercial support for Drupal. The Drupal core team decides on a release by release basis which community-contributed modules should be committed to Drupal core, and maintained by the Drupal core team. I believe that which Spotify being a major draw to Volumio - both free and paid versions, it makes sense for the Volumio team to move the Spotify into the core Volumio distribution and maintain and support it.

Since Michael’s Spotty plug-in is open-source, you can probably use it as a starting point.

2 Likes

Thanks for your feedback, missed the daemon part…

Guess stop driving the coastal line of California and start programming is not an option :slight_smile:

Not at the moment.

1 Like

Will settle for tomorrow, not right this moment. (just trying…)

Hi Guys,
thanks to all of you who contributed to this thread, both with developer’s suggestions and with comments.

The situation is exactly as Skirkwood described: we use a mix of Spotify Web API (for browsing) and SPOPD daemon for playback (which is the failing part now, since libspotify has been suddenly deprecated).

In fact, it’s a lot of time that we discuss with the closest community members developers a merge between librespot playback and spotify plugin to unify the Spotify experience in 1 plugin instead of two. Unfortunately as of now, no community developer has found the time to make that happen.

Long story short, our plan to solve this is:

  • Enquire quickly some plugins developers to see if they want to jump in and help fix this (volunteers welcomed, please PM me if interested).
  • If in the short term there is no community developer to help, the core Volumio team will hand-over this plugin maintenance. While we have some ideas on how to restore this functionality, it’s not certain that we will be able to do it: when we have to integrate with third party APIs, we need to rely on those APIs to be accessible and actually working, which is not always the case.
  • Since ETA in both options will not be until a month (at least), in the meantime I encourage everyone to use Spotify Connect plugin. If you need to browse trough, LMS plugin is a valid alternative as skirkwood points out.

Just to clarify (for some of the angry commenters) we do stand behind both our users and our customers, so if there is something important for the people that use Volumio, we are prepared to do it (as we did many times in the past).

12 Likes

One final comment on this. For all of you whining about the Spotify plug-in not working, as @volumio suggests just use the Spotify Connect plug-in. It still works.

A good friend of mine spent $13K on a Lumin X1 streamer a few years ago. You know how you play back Spotify on it? Spotify Connect.

3 Likes

tx - good advise for 99% here, however on some 3rd party devices (here pro-ject stream box …ultra) it requires to flash the device and part from the original, plugin-interface free, but otherwise nicely working system. at a risk i understand (also drivers?). :wink:

should someone have a bulletproof troublefree guide taylored to the pro-ject device - i’d gratefully donate some money to wherever… :slight_smile:

I have four Volumio with a 2,915 version. Spotify stops working after a while. So there is no connection to the version.

what Spotify Connect plug-in you are referring to? there is couple of…Thank you

1 Like

? I know only one here… You are on Volumio forum…

As @balbuze noted, there is only one Spotify Connect plug-in for Volumio. It works great.

1 Like

Dear Skikirkwood,

Please let me know to install method the Spotify Connected plug-in for Volumio.

1 Like

I really needed Spotify - bit of messing around to install but this works well and actually a nice interface to see artist song info etc

1 Like

Dear PhilDaintree,

Wow, the piCorePlayer with LMS works great!
I will try to install piCorePlayer with LMS.
Yesterday, I tried to install LMS plugin on Volumio but I don’t know the player with LMS and so I gave up to install more…

1 Like

If we are still talking about “Native” Spotify plugin (2.0.3 version) this one doesn’t work for me. Volumio 3.198

It does not work for any of us due to the reason discussed above. The suggested solution until it is hammered out is to use the plugin I highlighted on the screenshot below:

or via the LMS server plugin.

1 Like

Thank you. I have installed this plugin as you suggest but Spotify it still not listed in music sources.

1 Like

You use the Spotify app with Spotify Connect and choose Volumio as your output destination

2 Likes