mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #398] Playlists don't show up on the homepage #1152
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BinaryFly on GitHub (Mar 22, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/398
The column to show playlists don't show up on the homepage
The backtrace is empty but the log gives me the following line:
I found out which part of the returned json by the GetUserPlaylist request was problematic by looking up the column number and see what the problem was, I got this response by setting RUST_LOG=DEBUG and getting the log statement before the ERROR log.
This is the problematic part of the json where the "total" key in the returned "tracks" object is null, this makes spotify-player not show any playlists. all the other "total" keys of my playlists are a number on the other hand.
Seems like this is one of those special playlists made by spotify that somehow has a total of
nulltracks inside (maybe I didn't open the playlist yet)@BinaryFly commented on GitHub (Mar 22, 2024):
So I just opened and closed this playlist on my phone's spotify app, and the total doesn't seem to get updated though unfortunately, I still get the same error.
@aome510 commented on GitHub (Mar 22, 2024):
ahhh, another Spotify API type bug again. I can implement patch to workaround this issue. I do hope that Spotify makes their official API more "stable" sigh.
@aome510 commented on GitHub (Mar 22, 2024):
It seems that this playlist belongs to Spotify. Can you try to remove and add the playlist back to your library again?
@BinaryFly commented on GitHub (Mar 22, 2024):
Yeah that seems to have fixed the issue, now it correctly recognizes how many total tracks there are in this playlist and the issue doesn't show up again. weird how spotify reports
nullfor the total before though.@aome510 commented on GitHub (Mar 22, 2024):
Great to hear that it fixes the issue. Spotify API is a bit inconsistent. We recently encountered a few issues (https://github.com/ramsayleung/rspotify/issues/452) with their APIs.
I'll close this issue for now.
@Icelk commented on GitHub (Apr 1, 2024):
Before the next release, one may use the API to check which playlist is the culprit. Go the the spotify API documentation link below and test the query with limit = 50 offset = 0 on your own account (you need to be logged in):
https://developer.spotify.com/documentation/web-api/reference/get-a-list-of-current-users-playlists
Then Ctrl+F for
"total": nullis similar