Closed skandallouz closed 1 year ago
What is the value of ytmusic_artist_ids
?
Thank you for the quick response! ytmusic_artist_ids = ['UC13ToEQgfmTe8_GW19LYtCg'] This ID corresponds to Udit Narayan, and I've encountered the KeyError related to the 'watchEndpoint' when working with his extensive discography as well as similar artists with large catalogs.
I ran your code with the exact same setup and it worked fine. It must be an issue with your setup or a regional issue, which I can't help with.
Describe the bug
While attempting to retrieve an artist's discography using the get_ytmusic_discography function, a KeyError related to the 'watchEndpoint' is encountered. This issue seems to occur specifically for artists with very large discographies, while it works normally for artists with small to medium-sized libraries. This prevents the successful retrieval of the artist information for those with extensive discographies.
To Reproduce
Steps to reproduce the behavior:
get_ytmusic_discography
function with validytmusic_artist_ids
.KeyError
related to'watchEndpoint'
.Additional context
The error seems to be within the
ytmusicapi
library when trying to navigate through the response data. Here's a sample code and the error traceback:(this is the code and error I'm getting)
The code is attempting to retrieve discography information for specific artist IDs, but it encounters an issue within the ytmusicapi library. The error seems related to the internal parsing of the response data.