[GH-ISSUE #302] weird playlist format not being parsed correctly #236

Closed
opened 2026-02-27 22:08:45 +03:00 by kerem · 2 comments
Owner

Originally created by @oxcug on GitHub (Oct 2, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/302

Hey folks, I am trying to get the track list for the playlist with the ID: OLAK5uy_mo0wJh-LjbaTD5NsVO--RzKkToBnonkUw and noticed it has a different response than the one in the tests and is failing to be parsed. Not entirely sure what's the issue here but figured I'd raise it. Attached is a sample-response.txt with the json.

Originally created by @oxcug on GitHub (Oct 2, 2022). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/302 Hey folks, I am trying to get the track list for the playlist with the ID: OLAK5uy_mo0wJh-LjbaTD5NsVO--RzKkToBnonkUw and noticed it has a different response than the one in the tests and is failing to be parsed. Not entirely sure what's the issue here but figured I'd raise it. Attached is a [sample-response.txt](https://github.com/sigma67/ytmusicapi/files/9692877/sample-response.txt) with the json.
kerem closed this issue 2026-02-27 22:08:45 +03:00
Author
Owner

@sigma67 commented on GitHub (Oct 3, 2022):

The ID you linked is in fact an album (Avicii - TIM). The proper way to get that page with ytmusicapi is to use

browseId = ytm.get_album_browse_id(playlistId)
ytm.get_album(browseId)
<!-- gh-comment-id:1265032529 --> @sigma67 commented on GitHub (Oct 3, 2022): The ID you linked is in fact an album (Avicii - TIM). The proper way to get that page with ytmusicapi is to use ```python browseId = ytm.get_album_browse_id(playlistId) ytm.get_album(browseId)
Author
Owner

@oxcug commented on GitHub (Oct 9, 2022):

ah, makes sense, thanks!

<!-- gh-comment-id:1272616721 --> @oxcug commented on GitHub (Oct 9, 2022): ah, makes sense, thanks!
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#236
No description provided.