Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reason get_artist sometimes doesn't return songs #477

Closed
Schtenk opened this issue Nov 27, 2023 · 3 comments
Closed

Reason get_artist sometimes doesn't return songs #477

Schtenk opened this issue Nov 27, 2023 · 3 comments

Comments

@Schtenk
Copy link

Schtenk commented Nov 27, 2023

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:

  • MPLAUCKRnq8aBOCanYlffje7HyvA

And on all other "More" Buttons its in the form of:

  • MPADUCKRnq8aBOCanYlffje7HyvA

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
Copy link
Author

Schtenk commented 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
Copy link
Author

Schtenk commented Nov 27, 2023

found that videos are also missing when using "channelId"

@sigma67
Copy link
Owner

sigma67 commented Nov 27, 2023

Repository owner locked and limited conversation to collaborators Nov 27, 2023
@sigma67 sigma67 converted this issue into discussion #478 Nov 27, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants