Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not visible all playlist from spotify #99

Open
piotrek2555 opened this issue Oct 23, 2023 · 8 comments
Open

Not visible all playlist from spotify #99

piotrek2555 opened this issue Oct 23, 2023 · 8 comments

Comments

@piotrek2555
Copy link

piotrek2555 commented Oct 23, 2023

Not visible all playlist from app spotify in squeezer for android and browser

@michaelherger
Copy link
Owner

How many playlists would you have? How long are the missing ones? Any error in server.log?

@LeoBreebaart
Copy link

LeoBreebaart commented Dec 23, 2023

I am not sure if this is confirmation of this issue as reported by @piotrek2555, but I have also noticed that the number of playlists the Spotty plugin returns seems to max out at 25 (for me this shows using Material Skin in the Web Browser UI on all platforms), and yeah, I currently have about 65 top level entries in my Spotify Playlists, with no way to reach the other 40, so it's mildly annoying. (There are no errors in server.log that I can see, and the missing ones are just "all after the top 25")

I can probably make things work out for me by making my playlist hierarchy deeper rather than wider. But just having it show everything would be an easier option (for me, but probably not for you...)

@michaelherger
Copy link
Owner

Would you mind sharing your server.log.zip with me? https://www.dropbox.com/request/T3RctyzGgNg0oFDubq6a

@LeoBreebaart
Copy link

Not in the least! I have uploaded it. However, I do must apologise: I swear that when I said: "There are no errors in the server log that I can see" I had just checked that file and seen nothing. But now that I'm uploading it I see it is full of Spotify errors, most of them "Access Rate limit exceeded". All I can think of is that maybe I must have clicked on scanner.log by mistake or something, sorry. Not sure if the Access Rate errors explain the situation, though - I already noticed the max playlist thing ages ago, not just the last few days.

If it helps any: I run the squeezeserver through the Docker container.

Oh, and Merry Christmas!

@michaelherger
Copy link
Owner

Hmm... how many playlists do you have, and how long would they be? Does this happen when you navigate to the playlists?

The Spotify dashboard has charts about what calls your application is doing. Would that list particularly many calls for playlists?

@LeoBreebaart
Copy link

I have about 2500 playlists in total (nested in a folder hierarchy), the vast majority of them 'album length', i.e. 10-15 songs. There are a few, like my yearly favourites lists that can have 200 or more tracks.
My playlist folders typically hold a few more items (15-100). As I already mentioned, the top-most level playlist folder is also rather broad with 32 entries (used to be 60+ but I cleaned it up a bit), only 25 or so of which show up.
When I navigate my playlists (and I can't believe I didn't try this out for myself before -- I really am a bad issue-reporter on this one, sorry), the results are very strange, e.g. my '2019' folder has 65 playlists, all of which are shown, but my '2014' folder should have 37, but only 19 show up, consistently.

I have taken the liberty of uploading a new server.log, but this time with the Spotty logging level set to 'debug', and me doing exactly these things:

  • starting the server
  • clicking 'Spotty'
  • clicking 'Playlists' [only 25 out of 32 top-level items show up]
  • clicking on my '2019' playlist folder [all 65 items are shown]
  • clicking back to top level
  • clicking on my '2014' playlist folder [only 19 out of 37 show up]
  • stop the server

There are never any issue with the tracks inside a playlist -- even if there's hundreds of tracks, they always show up and play correctly.

My Spotify dashboard shows zero activity all over -- and I am quite certain that this is the correct account I am using for Spotty:

image

Does any of this help?

@michaelherger
Copy link
Owner

2500 playlists is massive! As we can only get 50 at a time this means that Spotty would send 50 requests within a very short period of time to get them all. The API doesn't provide them by folder. That's all done LMS side. Therefore the plugin has to always get all playlists.

Your screenshot looks as if you didn't use that configuration. Are you sure you've configured Spotty to use it?

@LeoBreebaart
Copy link

Dear Michael,

Sincere apologies for suddenly dropping out of the conversation -- real-life stuff happened, my SqueezeBox died (twice), and in general it just kinda disappeared off my radar for a bit.

Now I have purchased a brand new old SqueezeBox Classic and I'm playing music again, and suddenly noticing... - oh, right...

2500 playlists is massive! As we can only get 50 at a time this means that Spotty would send 50 requests within a very short period of time to get them all. The API doesn't provide them by folder.

OK, that explains the problem then. My mental model of the API was completely wrong, I thought it would just ask for the playlists by folder, so making a 'deep' as opposed to broad tree would help. I hadn't realised it needs to get all of them in advance.

Your screenshot looks as if you didn't use that configuration. Are you sure you've configured Spotty to use it?

I set the thing up ages ago, and, yes, somewhere along the line my LMS Spotty settings seems to have lost my Client ID. That likely explains the rate-limiting errors I was seeing. I hope that didn't screw things up too much for others. I've now reconfigured my Client ID. That should help.

Anyway, I think my path is clear: I need to stop storing all the albums I listen to (including those I 'reject') as Playlists in Spotify. That should bring the 2500 down to a much more manageable 250, I suspect.
I am not the opener of this issue -- but as far as I'm concerned it can be closed. :-)

My thanks again for your assistance, and also my thanks for writing Spotty. I genuinely don't know what I'd do without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants