[GH-ISSUE #366] Some playlists only returning 100 tracks, regardless of limit in get_playlist #290

Closed
opened 2026-02-27 22:09:01 +03:00 by kerem · 7 comments
Owner

Originally created by @scrimshander on GitHub (Mar 26, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/366

In the last few days, I have seen some of my playlists only returning 100 tracks via get_playlist, regardless of limit. The behavior is consistent per playlist, but I cannot find any systematic difference between the ones that seem limited to 100 and the others. I have tried setting public/private, etc. This is new behavior - I am constantly managing the same group of playlists with this call and have not changed anything in my code for some time.

Copying a "bad" playlist to a new one results in good behavior from the new playlist.

Has anyone ever seen similar behavior? I will keep trying and see if it clears up.

Originally created by @scrimshander on GitHub (Mar 26, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/366 In the last few days, I have seen *some* of my playlists only returning 100 tracks via `get_playlist`, regardless of `limit`. The behavior is consistent per playlist, but I cannot find any systematic difference between the ones that seem limited to 100 and the others. I have tried setting public/private, etc. This is new behavior - I am constantly managing the same group of playlists with this call and have not changed anything in my code for some time. Copying a "bad" playlist to a new one results in good behavior from the new playlist. Has anyone ever seen similar behavior? I will keep trying and see if it clears up.
kerem closed this issue 2026-02-27 22:09:01 +03:00
Author
Owner

@sigma67 commented on GitHub (Mar 27, 2023):

I believe this is related to issue #365. Have you check with latest master?

<!-- gh-comment-id:1484694631 --> @sigma67 commented on GitHub (Mar 27, 2023): I believe this is related to issue #365. Have you check with latest master?
Author
Owner

@scrimshander commented on GitHub (Mar 28, 2023):

Ah yes, those look to be the same thing. I have not tried the latest code,
only latest release. Will do!

On Mon, Mar 27, 2023, 4:09 AM sigma67 @.***> wrote:

I believe this is related to issue #365
https://github.com/sigma67/ytmusicapi/issues/365. Have you check with
latest master?


Reply to this email directly, view it on GitHub
https://github.com/sigma67/ytmusicapi/issues/366#issuecomment-1484694631,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJVYR7MQSLZDOYRL6RGESDW6FDMPANCNFSM6AAAAAAWIPBFBU
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:1486746533 --> @scrimshander commented on GitHub (Mar 28, 2023): Ah yes, those look to be the same thing. I have not tried the latest code, only latest release. Will do! On Mon, Mar 27, 2023, 4:09 AM sigma67 ***@***.***> wrote: > I believe this is related to issue #365 > <https://github.com/sigma67/ytmusicapi/issues/365>. Have you check with > latest master? > > — > Reply to this email directly, view it on GitHub > <https://github.com/sigma67/ytmusicapi/issues/366#issuecomment-1484694631>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABJVYR7MQSLZDOYRL6RGESDW6FDMPANCNFSM6AAAAAAWIPBFBU> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@rtammekivi commented on GitHub (Mar 31, 2023):

Fixed for me on latest release 👍

<!-- gh-comment-id:1492587179 --> @rtammekivi commented on GitHub (Mar 31, 2023): Fixed for me on latest release :+1:
Author
Owner

@dataNerd23 commented on GitHub (Jun 15, 2023):

I still have this problem with my playlist. I'm using python 3.11.4 and ytmusicapi 1.0.2. I've tried setting the limit=None and limit=1000 with no avail. My playlist size is 208.

Also, I get the same issue mentioned in #365.

@sigma67 let me know if you want me to send you the playlist link privately.

<!-- gh-comment-id:1592476710 --> @dataNerd23 commented on GitHub (Jun 15, 2023): I still have this problem with my playlist. I'm using python 3.11.4 and ytmusicapi 1.0.2. I've tried setting the limit=None and limit=1000 with no avail. My playlist size is 208. Also, I get the same issue mentioned in [#365](https://github.com/sigma67/ytmusicapi/issues/365). @sigma67 let me know if you want me to send you the playlist link privately.
Author
Owner

@dataNerd23 commented on GitHub (Jun 15, 2023):

I still have this problem with my playlist. I'm using python 3.11.4 and ytmusicapi 1.0.2. I've tried setting the limit=None and limit=1000 with no avail. My playlist size is 208.

Also, I get the same issue mentioned in #365.

@sigma67 let me know if you want me to send you the playlist link privately.

I also found out that the duration has the track count, trackCount returns the first two digits of the views, and views returns nothing. I think this is an off by one error.

<!-- gh-comment-id:1592495594 --> @dataNerd23 commented on GitHub (Jun 15, 2023): > I still have this problem with my playlist. I'm using python 3.11.4 and ytmusicapi 1.0.2. I've tried setting the limit=None and limit=1000 with no avail. My playlist size is 208. > > Also, I get the same issue mentioned in [#365](https://github.com/sigma67/ytmusicapi/issues/365). > > @sigma67 let me know if you want me to send you the playlist link privately. I also found out that the duration has the track count, trackCount returns the first two digits of the views, and views returns nothing. I think this is an off by one error.
Author
Owner

@dataNerd23 commented on GitHub (Jun 15, 2023):

I still have this problem with my playlist. I'm using python 3.11.4 and ytmusicapi 1.0.2. I've tried setting the limit=None and limit=1000 with no avail. My playlist size is 208.
Also, I get the same issue mentioned in #365.
@sigma67 let me know if you want me to send you the playlist link privately.

I also found out that the duration has the track count, trackCount returns the first two digits of the views, and views returns nothing. I think this is an off by one error.

I fixed the issue by pulling from the master directly, and I specifically noticed the difference in the following lines from playlist.py:

https://github.com/sigma67/ytmusicapi/blob/d9f9fcc1477ead219e7c06c593574ba8cc13fe52/ytmusicapi/mixins/playlists.py#L137-L143

I just noticed this fix occurred after the latest version (1.0.2).

<!-- gh-comment-id:1592533802 --> @dataNerd23 commented on GitHub (Jun 15, 2023): > > I still have this problem with my playlist. I'm using python 3.11.4 and ytmusicapi 1.0.2. I've tried setting the limit=None and limit=1000 with no avail. My playlist size is 208. > > Also, I get the same issue mentioned in [#365](https://github.com/sigma67/ytmusicapi/issues/365). > > @sigma67 let me know if you want me to send you the playlist link privately. > > I also found out that the duration has the track count, trackCount returns the first two digits of the views, and views returns nothing. I think this is an off by one error. I fixed the issue by pulling from the master directly, and I specifically noticed the difference in the following lines from playlist.py: [https://github.com/sigma67/ytmusicapi/blob/d9f9fcc1477ead219e7c06c593574ba8cc13fe52/ytmusicapi/mixins/playlists.py#L137-L143](https://github.com/sigma67/ytmusicapi/blob/d9f9fcc1477ead219e7c06c593574ba8cc13fe52/ytmusicapi/mixins/playlists.py#L137-L143) I just noticed this fix occurred after the latest version (1.0.2).
Author
Owner

@sigma67 commented on GitHub (Jun 15, 2023):

Yes, I've been slacking on the release. Will push one today.

<!-- gh-comment-id:1593462432 --> @sigma67 commented on GitHub (Jun 15, 2023): Yes, I've been slacking on the release. Will push one today.
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#290
No description provided.