mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #853] get_playlist() crashes on OLAK chart playlists without album info #520
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @guillevc on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/853
Description
get_playlist()crashes withTypeError: 'NoneType' object is not subscriptablewhen fetching OLAK playlists that don't have album info on all tracks (e.g., chart/trending playlists).Reproduction
Library version: 1.11.5
Steps:
Error:
Root Cause
parse_audio_playlist()assumes all OLAK playlists are album playlists where every track has album info. However, chart playlists like "Trending 20 Spain" use the OLAK prefix but contain music videos (OMVs) without album info.Proposed Fix
Make
parse_audio_playlist()returnNonewhen not all tracks have album info, allowing the caller to fall back to regular playlist parsing.I have a fix ready and will submit a PR.