[GH-ISSUE #38] Docs for get_playlist wrong? #29

Closed
opened 2026-02-27 22:07:38 +03:00 by kerem · 1 comment
Owner

Originally created by @dmwyatt on GitHub (Jul 4, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/38

The docstring for get_playlist says it returns a list of playlistItem dictionaries.

I'm only get a dictionary back...not wrapped in a list. Is it possible for a playlistId to return multiple playlistItem dictionaries? I don't have enough experience with the API yet to know if it'll ever return a list, but even if it sometimes returns a list and sometimes a dictionary the docstring seems to be incorrect.

Originally created by @dmwyatt on GitHub (Jul 4, 2020). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/38 The docstring for `get_playlist` says it returns a list of playlistItem dictionaries. I'm only get a dictionary back...not wrapped in a list. Is it possible for a `playlistId` to return multiple `playlistItem` dictionaries? I don't have enough experience with the API yet to know if it'll ever return a list, but even if it sometimes returns a list and sometimes a dictionary the docstring seems to be incorrect.
kerem closed this issue 2026-02-27 22:07:38 +03:00
Author
Owner

@sigma67 commented on GitHub (Jul 4, 2020):

The :returns string is wrong, but the return type and example dictionary are correct. Will fix this soon

<!-- gh-comment-id:653816419 --> @sigma67 commented on GitHub (Jul 4, 2020): The `:returns` string is wrong, but the return type and example dictionary are correct. Will fix this soon
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#29
No description provided.