[GH-ISSUE #185] Error while playing a playlist #142

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

Originally created by @kaizersoje on GitHub (Mar 31, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/185

I am getting the following error when trying to play a playlist

Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1096, in play_media self._tracks = self._api.get_playlist(playlistId=media_id)['tracks'] File "/usr/local/lib/python3.8/site-packages/ytmusicapi/mixins/playlists.py", line 67, in get_playlist results = nav(response, File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 146, in nav raise err File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 140, in nav root = root[k] KeyError: 'contents'

Originally created by @kaizersoje on GitHub (Mar 31, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/185 I am getting the following error when trying to play a playlist `Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1096, in play_media self._tracks = self._api.get_playlist(playlistId=media_id)['tracks'] File "/usr/local/lib/python3.8/site-packages/ytmusicapi/mixins/playlists.py", line 67, in get_playlist results = nav(response, File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 146, in nav raise err File "/usr/local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 140, in nav root = root[k] KeyError: 'contents'`
kerem closed this issue 2026-02-27 22:08:16 +03:00
Author
Owner

@sigma67 commented on GitHub (Mar 31, 2021):

Please state which playlist (playlistId)

<!-- gh-comment-id:811091577 --> @sigma67 commented on GitHub (Mar 31, 2021): Please state which playlist (playlistId)
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#142
No description provided.