Skip to content

get_artist() returns empty songs/albums/singles when artist page uses twoColumnBrowseResultsRenderer #929

Description

@silenthooligan
  • I confirm that I have read the FAQ.

Describe the bug

get_artist(channelId) returns the artist name, description, and images, but songs.results, albums.results, and singles.results are empty. No exception.

YT Music is serving some artist pages as twoColumnBrowseResultsRenderer. The parser only walks singleColumnBrowseResultsRenderer.tabs[...].sectionListRenderer.contents, so the section list collapses to [].

PR #878 added a two-column fallback for albums, playlists, and podcasts. Artist is not covered.

ytmusicapi version

1.11.5

To Reproduce

from ytmusicapi import YTMusic
yt = YTMusic("browser.json")
a = yt.get_artist("UC5xaQ6_dP7EGDmGLzVGZ1Ow")  # Morgan Wallen
print(a["name"])                    # Morgan Wallen
print(len(a["songs"]["results"]))   # 0  (expected 5)
print(len(a["albums"]["results"]))  # 0  (expected many)

Reproduces on multiple popular artists, authenticated and unauthenticated.

Additional context

Hits via Music Assistant 2.8.7. MA's artist play_media fans out through get_artist().songs.results, so artist-tile playback fails with "No playable items found". Track and album URIs play normally.

The fix mirrors PR #878's get_browse_renderer() helper into the get_artist path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions