Skip to content

Conversation

sgvictorino
Copy link
Contributor

Fixes #786

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

`get_album` no longer errors on albums with no artist metadata, instead
returning `"artist": None`
@sgvictorino sgvictorino force-pushed the optional-artist-header branch from f1ad93d to f03ce7f Compare July 23, 2025 20:44
@sigma67
Copy link
Owner

sigma67 commented Jul 24, 2025

Thank you! I will need to take some time tonight to fix the failing tests. Probably some entities were removed on the server

@sigma67 sigma67 changed the title prevent KeyError when parsing missing author data get_album: prevent KeyError when parsing missing artist data Jul 24, 2025
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.00%. Comparing base (4506c7e) to head (0d96cf7).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #788   +/-   ##
=======================================
  Coverage   93.99%   94.00%           
=======================================
  Files          43       43           
  Lines        2499     2500    +1     
=======================================
+ Hits         2349     2350    +1     
  Misses        150      150           
Flag Coverage Δ
unittests 94.00% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sigma67 sigma67 merged commit 39a480e into sigma67:main Jul 24, 2025
5 checks passed
kaneryu pushed a commit to kaneryu/ytmusicapi that referenced this pull request Aug 27, 2025
`get_album` no longer errors on albums with no artist metadata, instead
returning `"artist": None`

Co-authored-by: sigma67 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_album failure on specific songs
2 participants