-
Notifications
You must be signed in to change notification settings - Fork 216
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
KeyError: 'gridRenderer' for get_artist_albums
#439
Comments
Seems there's been an update and you can now filter by Albums/Singles and sort. PR welcome. |
This doesn't touch singles at all, as I'm frankly too dumb to figure that out Fixes sigma67#439
One problem I'm currently facing is https://music.youtube.com/browse/UCNms80n59AltHVQuPgGrKkg artist response: [
{
"musicShelfRenderer": {
"title": {
"runs": [
{
"text": "Songs",
...
},
{
"musicCarouselShelfRenderer": {
"header": {
"musicCarouselShelfBasicHeaderRenderer": {
"title": {
"runs": [
{
"text": "Albums",
"navigationEndpoint": {
"browseEndpoint": {
"browseId": "MPADUCNms80n59AltHVQuPgGrKkg",
"params": "ggMIegYIARoCAQI%3D",
... response using this endpoint + parameters: {
"musicShelfRenderer": {
"title": {
"runs": [
{
"text": "Songs",
"navigationEndpoint": {
"browseEndpoint": {
"browseId": "VLOLAK5uy_l4hMfu2sKTre4vbmEVhMWXc7HXZcdc-Os",
"params": "ggMCCAI%3D",
}
}
}
}
]
},
"contents": [
{
"musicResponsiveListItemRenderer":
... |
I was to blame for that last mistake. I wrongly assumed, that I could use the channelId as browseId for getting albums, while that isn't always the case. Fixing that fixed the issue. |
This doesn't touch singles at all, as I'm frankly too dumb to figure that out Fixes #439
#441 for the new features |
#441 is now completed |
Whenever using
YTMusic.get_artist_albums
, it fails with aKeyError: 'gridRenderer'
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: