mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #441] get_artist_albums: add singles filter and sort #329
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_albumsshould support the new filters through parameters consistent with the rest of the API. Contributions are welcome.@sigma67 commented on GitHub (Oct 3, 2023):
The filters are written using
continuations.Need two function parameters
filter = "singles"/"albums"andsort = "default"/"recency"/"popularity"/"alphabetical"Based on the function parameters given, grab the relevant continuations from
header.musicSideAlignedItemRender.startItems(for filters) or fromheader.musicSideAlignedItemRender.endItems(for sort) and replace the returned response with the continuation response before parsing and returning to the user.