Skip to content

Commit

Permalink
Add none_if_absent param to playlistId key in parse_albums
Browse files Browse the repository at this point in the history
  • Loading branch information
zarkdav committed Oct 4, 2022
1 parent c37a2ec commit 081a64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytmusicapi/parsers/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def parse_albums(results):
data = result[MTRIR]
album = {}
album['browseId'] = nav(data, TITLE + NAVIGATION_BROWSE_ID)
album['playlistId'] = nav(data, MENU_PLAYLIST_ID)
album['playlistId'] = nav(data, MENU_PLAYLIST_ID, none_if_absent=True)
album['title'] = nav(data, TITLE_TEXT)
album['thumbnails'] = nav(data, THUMBNAIL_RENDERER)

Expand Down

0 comments on commit 081a64d

Please sign in to comment.