[GH-ISSUE #441] get_artist_albums: add singles filter and sort #329

Closed
opened 2026-02-27 23:00:13 +03:00 by kerem · 1 comment
Owner

Originally created by @sigma67 on GitHub (Sep 25, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/441

The artist albums page has a new look: https://music.youtube.com/browse/MPADUC-CcyIM_seGnGL5-2Fsppow

get_artist_albums should support the new filters through parameters consistent with the rest of the API. Contributions are welcome.

Originally created by @sigma67 on GitHub (Sep 25, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/441 The artist albums page has a new look: https://music.youtube.com/browse/MPADUC-CcyIM_seGnGL5-2Fsppow `get_artist_albums` should support the new filters through parameters consistent with the rest of the API. Contributions are welcome.
Author
Owner

@sigma67 commented on GitHub (Oct 3, 2023):

The filters are written using continuations.

Need two function parameters filter = "singles"/"albums" and sort = "default"/"recency"/"popularity"/"alphabetical"

Based on the function parameters given, grab the relevant continuations from header.musicSideAlignedItemRender.startItems (for filters) or from header.musicSideAlignedItemRender.endItems (for sort) and replace the returned response with the continuation response before parsing and returning to the user.

<!-- gh-comment-id:1745203886 --> @sigma67 commented on GitHub (Oct 3, 2023): The filters are written using `continuations`. Need two function parameters `filter = "singles"/"albums"` and `sort = "default"/"recency"/"popularity"/"alphabetical"` Based on the function parameters given, grab the relevant continuations from `header.musicSideAlignedItemRender.startItems` (for filters) or from `header.musicSideAlignedItemRender.endItems` (for sort) and replace the returned response with the continuation response before parsing and returning to the user.
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#329
No description provided.