-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Was trying to set this up and ran in to what appears to be a pagination issue when it is fetching the playlists for listenbrainz. I am getting this error:
ERROR failed to get weekly-exploration playlist, check if ListenBrainz has generated one this week
If I look at the API result for my user, that playlist isn't there:
https://api.listenbrainz.org/1/user/johnthepink/playlists/createdfor
https://gist.github.com/johnthepink/b5fed954ddb4cb1282f3e28502e00e3f
My playlist count is 33, but the API only returns the first 25 by default. If I add the count parameter to the call then I get it back:
https://api.listenbrainz.org/1/user/johnthepink/playlists/createdfor?count=50
https://gist.github.com/johnthepink/9e03e3a121ec2046d0699680184d2389
This may resolve itself when the weekly playlists are re-generated next, as the playlists do seem to be ordered by date descending, but any thoughts on how to get around this? Maybe supporting a count environment variable?