[PR #788] [MERGED] get_album: prevent KeyError when parsing missing artist data #734

Closed
opened 2026-02-27 23:02:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigma67/ytmusicapi/pull/788
Author: @sgvictorino
Created: 7/23/2025
Status: Merged
Merged: 7/24/2025
Merged by: @sigma67

Base: mainHead: optional-artist-header


📝 Commits (2)

  • f03ce7f prevent KeyError when parsing missing author data
  • 0d96cf7 Merge remote-tracking branch 'origin/main' into sgvictorino-optional-artist-header

📊 Changes

3 files changed (+14 additions, -5 deletions)

View changed files

📝 tests/mixins/test_browsing.py (+6 -0)
📝 ytmusicapi/parsers/albums.py (+1 -1)
📝 ytmusicapi/parsers/podcasts.py (+7 -4)

📄 Description

Fixes #786

get_album no longer errors on albums with no artist metadata, instead returning "artist": None


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigma67/ytmusicapi/pull/788 **Author:** [@sgvictorino](https://github.com/sgvictorino) **Created:** 7/23/2025 **Status:** ✅ Merged **Merged:** 7/24/2025 **Merged by:** [@sigma67](https://github.com/sigma67) **Base:** `main` ← **Head:** `optional-artist-header` --- ### 📝 Commits (2) - [`f03ce7f`](https://github.com/sigma67/ytmusicapi/commit/f03ce7ffed6fb34784d381d2b7b468f4c937c09f) prevent KeyError when parsing missing author data - [`0d96cf7`](https://github.com/sigma67/ytmusicapi/commit/0d96cf7366fc8a2c1bf06b29a67f02394ec21f25) Merge remote-tracking branch 'origin/main' into sgvictorino-optional-artist-header ### 📊 Changes **3 files changed** (+14 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tests/mixins/test_browsing.py` (+6 -0) 📝 `ytmusicapi/parsers/albums.py` (+1 -1) 📝 `ytmusicapi/parsers/podcasts.py` (+7 -4) </details> ### 📄 Description Fixes #786 `get_album` no longer errors on albums with no artist metadata, instead returning `"artist": None` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 23:02:11 +03:00
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#734
No description provided.