mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 07:46:00 +03:00
[GH-ISSUE #477] Reason get_artist sometimes doesn't return songs #356
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#356
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 @Schtenk on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/477
Hey, i'm not sure this is the correct place to put this but I think I know why get_artist sometimes doesn't return songs.
There seems to be two different "channelIds" per artist.
both of these works to get an artist except one does not include songs.
ChannelId
This i is the one this api saves as "channelId"
This type of Id for for Mariah Carey is: UCurpiDXSkcUbgdMwHNZkrCg
This is the one found at the jsonpath:
header.musicImmersiveHeaderRenderer.subscriptionButton.subscribeButtonRenderer.channelId
Using this one in a new request no songs are included in the response.
ChannelId/ChannelBrowseId
This is the one that youtube itself seems to mostly use which can only be found on songs/albums/singles or "More" buttons in the response.
This type of Id for Mariah Carey is: UCKRnq8aBOCanYlffje7HyvA
On songs/album/singles it is found in the above form^
From your library "More" button its in the form of:
And on all other "More" Buttons its in the form of:
The full jsonpath may look something like this (MPAD version):
contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer.
content.sectionListRenderer.contents[1].musicCarouselShelfRenderer.
header.musicCarouselShelfBasicHeaderRenderer.moreContentButton.
buttonRenderer.navigationEndpoint.browseEndpoint.browseId
Using this one in a new request songs are included in the response.
@Schtenk commented on GitHub (Nov 27, 2023):
Responses are also slightly different, for example ShuffleId is under "watchPlaylistEndpoint" (for channelId) instead of "watchEndpoint" (for channelBrowseId), same for RadioId.
@Schtenk commented on GitHub (Nov 27, 2023):
found that videos are also missing when using "channelId"
@sigma67 commented on GitHub (Nov 27, 2023):
See for yourself:
https://music.youtube.com/channel/UCurpiDXSkcUbgdMwHNZkrCg
https://music.youtube.com/channel/UCKRnq8aBOCanYlffje7HyvA