[GH-ISSUE #455] get_liked_songs works incorrectly or maybe yt music api doesnt return all data #338

Closed
opened 2026-02-27 23:00:16 +03:00 by kerem · 6 comments
Owner

Originally created by @veber88 on GitHub (Oct 10, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/455

I call get_liked_songs for my Liked playlist. Playlist has 6055 songs, but i receive 5750 songs. Seems this is an issue.

Same problem when I use
ytmusic.get_playlist('LM', 100000)

Originally created by @veber88 on GitHub (Oct 10, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/455 I call `get_liked_songs` for my Liked playlist. Playlist has 6055 songs, but i receive 5750 songs. Seems this is an issue. Same problem when I use `ytmusic.get_playlist('LM', 100000)`
kerem 2026-02-27 23:00:16 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@sigma67 commented on GitHub (Oct 10, 2023):

IIRC 5k songs is the official limit of YTMusic playlists, so I'm not surprised there are oddities above that limit

https://www.reddit.com/r/YoutubeMusic/comments/gl0wvw/songs_limits/fquxowq/

<!-- gh-comment-id:1754674126 --> @sigma67 commented on GitHub (Oct 10, 2023): IIRC 5k songs is the official limit of YTMusic playlists, so I'm not surprised there are oddities above that limit https://www.reddit.com/r/YoutubeMusic/comments/gl0wvw/songs_limits/fquxowq/
Author
Owner

@veber88 commented on GitHub (Oct 10, 2023):

But i dont receive 5000 as max, i receive 5750. Therefore i think issue isnt related to limit.

<!-- gh-comment-id:1754950439 --> @veber88 commented on GitHub (Oct 10, 2023): But i dont receive 5000 as max, i receive 5750. Therefore i think issue isnt related to limit.
Author
Owner

@sigma67 commented on GitHub (Oct 10, 2023):

All I'm saying is: this is probably the cause of the unstable behavior. No idea why it's giving you more than 5k songs.

Either way, this is not really something we can fix here.

<!-- gh-comment-id:1755664841 --> @sigma67 commented on GitHub (Oct 10, 2023): All I'm saying is: this is probably the cause of the unstable behavior. No idea why it's giving you more than 5k songs. Either way, this is not really something we can fix here.
Author
Owner

@veber88 commented on GitHub (Oct 11, 2023):

Ok, thanks for answer!

<!-- gh-comment-id:1756605768 --> @veber88 commented on GitHub (Oct 11, 2023): Ok, thanks for answer!
Author
Owner

@veber88 commented on GitHub (Oct 11, 2023):

I think this could be related to songs that became unavailable.
I found for test 1 unavailable song and it wasnt returned to me via ytmusicapi.
But yt music app shows this song in list (as unavailable song but it is still in list). That means that their api returns all songs even for unavailable ones.

<!-- gh-comment-id:1756608925 --> @veber88 commented on GitHub (Oct 11, 2023): I think this could be related to songs that became unavailable. I found for test 1 unavailable song and it wasnt returned to me via ytmusicapi. But yt music app shows this song in list (as unavailable song but it is still in list). That means that their api returns all songs even for unavailable ones.
Author
Owner

@sigma67 commented on GitHub (Oct 11, 2023):

You could try to open the entire playlist on the web (keep scrolling down) and count the unavailable ones?

Although the function used for get_liked_songs is able to parse unavailable songs correctly, i.e. if you fetch a playlist with unavailable songs they show up in the result.

<!-- gh-comment-id:1757086222 --> @sigma67 commented on GitHub (Oct 11, 2023): You could try to open the entire playlist on the web (keep scrolling down) and count the unavailable ones? Although the function used for `get_liked_songs` is able to parse unavailable songs correctly, i.e. if you fetch a playlist with unavailable songs they show up in the result.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#338
No description provided.