Help needed to test Spotify plugin with Oauth

Discuss, contribute and orient Volumio development!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Help needed to test Spotify plugin with Oauth

Postby fork » Wed Dec 19 2018 17:31

Hi,

I`m on latest version volumio: 2.513, and sadly it didn't work for me :( I`ve tried two times.
Random avatar
fork
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Wed Dec 19 2018 17:26

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Help needed to test Spotify plugin with Oauth

Postby skikirkwood » Wed Dec 19 2018 18:40

RamsesVD wrote:Hi,
worked my path through the described procedure and it worked so far. Thumbs up!
I am only wondering if the section "My playlists" is limited to 50 playlists?
(actually I have much more playlists in my spotify account, but only the first 50 are shown)

Thanks for any help or info about that.
Greetings . Volker.

Hi There, unfortunately the Spotify Web API maxes out at 50 results. There is support for pagination, and I believe some other contributors here are looking at extending the plugin to support paginated results.
Volumio 2 on Raspberry Pi 3 B+, Schiit Modi 2 Multibit DAC, Volumio 2 on Raspberry Pi 3, IQAudio Pi-DAC+, Schiit Freya preamp, Bryston 3b power amp, B&W 803 speakers
User avatar
skikirkwood
Objectivist
Objectivist
 
Posts: 239
Joined: Thu Jan 08 2015 17:16
Location: Los Altos Hills, California


Help needed to test Spotify plugin with Oauth

Postby lorbass » Fri Dec 21 2018 20:30

I tested both procedures . They worked fine.

:) Thx alot and have a nice x-mas time
User avatar
lorbass
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Sat Dec 15 2018 17:48


Help needed to test Spotify plugin with Oauth

Postby marco79cgn » Fri Jan 04 2019 00:01

skikirkwood wrote:Hi There, unfortunately the Spotify Web API maxes out at 50 results. There is support for pagination, and I believe some other contributors here are looking at extending the plugin to support paginated results.


Unfortunately I was busy during december/christmas holidays.

The Spotify Web API has pagination support. Here is an example of a request containing playlist 3 and 4 of my total 268 playlists. I'm using small numbers for explanation, at the end we would of course use the maximum of 50 results (and then the next 50 and so on).

Code: Select all
{
   "href":"https://api.spotify.com/v1/users/almeidactu/playlists?offset=2&limit=2",
   "items":[
      ... // array containing playlist 3 and 4
   ],
   "limit":2,
   "next":"https://api.spotify.com/v1/users/almeidactu/playlists?offset=4&limit=2",
   "offset":2,
   "previous":"https://api.spotify.com/v1/users/almeidactu/playlists?offset=0&limit=2",
   "total":268
}


So as you can see, the api result includes the correct search urls for both previous (playlist 1 and 2) and next (playlist 5 & 6) results. So how can we add this to the Volumio UI? Is it possible to add a "next" arrow button to the navigation right beside the "back" arrow button? If so, then maybe we could map the previous/next search urls to these buttons and populate the list on the fly? Is it possible to perform a search request upon pressing these navigation buttons or are they static? :?:

Image
User avatar
marco79cgn
Serious Listener
Serious Listener
 
Posts: 63
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany


Help needed to test Spotify plugin with Oauth

Postby MartinT » Fri Jan 11 2019 20:29

Thank you for this. It worked and I have my playlists back.
User avatar
MartinT
Sunday DIYer
Sunday DIYer
 
Posts: 45
Joined: Wed Jul 30 2014 12:53

Previous

Return to Development talks

Who is online

Users browsing this forum: No registered users and 0 guests