Help needed to test Spotify plugin with Oauth

Hey, super!! Looking forward with confidence! :smiley:

Ok Qrumba, try this new version:

github.com/skikirkwood/volumio- … y/index.js

The refresh token needs to be replaced at line 450.

I put in checks throughout the entire plugin for missing album art. Let me know how it works.

Awesome, thank you so much!

Works for me, except for the first time I click on My Playlists. There the progress bar takes a long time to complete and in the end nothing happens. Going back and clicking My Playlists again it works like a charm. (latest version from 15 June)

Yeah, I think that’s a timing issue when I first refresh the access token asynchronously. Will be fixing that when I add some pagination to the results.

For me everything seams to work perfectly!
All the lists come with many (correct) entries and all album arts.
Playback is working and album art is shown at pb screen.
Good work!!
Thx a lot!!

Just rebuilt my Volumio installation and discovered the Playlists issue. Followed your instructions for replacing the index.js file with the updated version with the token and they now appear.

Great work, thanks again.

Ferg

Hi skikirkwood, Hi all,

My Top Artists,
My Top Tracks,
My Recently Played Tracks
working as expexted :slight_smile:

After updating with pagination the version will be a “DO NOT TOUCH” :slight_smile: version …

Excellent news! I really like the “My Top Artists”, because I can then click on “Related Artists” and build up interesting playlists. Which reminds me, I need to get the grid view working in that screen.

You have right,

I was lazy to check all lists against grid view … so, i dis it now.

Grid view is missing from next screens :

  • My Saved Albums / Album / Tracks
  • My Top Artists / Artist / Top Tracks - Albums - Related Artists
  • What’s New / Album / Tracks

Tapatalkkal küldve az én PLK-L01 eszközömről

Sorry I’m being dumb here. Can you explain where the refreshtoken information needs to go in the .js file?

This is information I have in the .js file around line 450

Unstar 0

@bagowarrior You haven’t successfully downloaded index.js … you want the raw file, not html.

Where’s the headbang emoji when you need it? :laughing:

Works really well. Great work.

First of all, thanks!!
It works like a charm here!

Still have a small snag here: I can see my spotify playlists right now, but only the first 100 songs.
Can you guys help me here?

Thanks again!

I installed the modified index.js and it seems to work.
Well, at least a little more than before: I can only see my first 20 playlists, the (alphabetically) first 50 saved albums :slight_smile:

Hi There, it’s a general problem that we need to add pagination into the UI for all kinds of things. The Spotify Web API fully supports getting chunks of results, its more of a matter of how to add it to the UI. Making too many Spotify API requests at once can trigger its rate limit caps.

Kind of busy right now, but when I next get some free time I will attempt to add pagination of results throughout the interface.

I just checked on both of my volumio systems and one shows 20 playlists, the other shows 50. That’s really odd, pretty sure I have the same code on both systems, and I did verify on the system only showing 20 that the API call is passing in teh “{limit : 50}” parameter.

Will have to look further into this when I return from Lake Tahoe later this week.

skikirkwood, thanks for your reply - take your time :sunglasses:
I’m more than glad that someone is working on the Spotify issue and I’m sure there will be a solution soon.

skikirkwood, thanks for your reply!
Take your time and enjoy this amazing place called Lake Tahoe :wink:
Cheers!

thanks for your work, works well on RPi 3!

The only thing is that my Playlist-Folders doesn’t appear. Is there any solution for that issue?

thank you!