-
Notifications
You must be signed in to change notification settings - Fork 214
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
Inconsistent Album Retrieval from YouTube Music API #712
Comments
The results are localized. If your (YTMusic instance client) language is English you will see fewer albums. |
Hi, Thanks for the suggestion about using the language parameter. I've done extensive testing with different language settings (en, de, it) and found that the results appear to be identical across all languages:
ytmusic = YTMusic("browser.json", language="de") # Also tried "en" and "it"
artist_data = ytmusic.get_artist(channel_id)
albums_section = artist_data.get('albums', {}) Is there something else I should try? Or might there be another parameter that affects localization besides just the language setting and Accept-Language header? I can share more detailed test results if needed. |
Are your authentication credentials valid? I only get the full list on authenticated accounts |
fwiw these types of issues are usually easier to debug by checking what's shown on the web view when using different accounts/settings |
Thank you for the quick response! I apologize for causing confusion - you're absolutely right. My issue wasn't with the API at all, but rather with my incorrect browser.json authentication. A simple auth status check would have saved me time and helped me identify the real issue immediately. This would be super helpful for other new developers like me who are just getting started with the library. Thanks for maintaining such a helpful library and for the fast responses to questions! |
I do not understand any of that. Maybe a guide could help others like me that are new to the api? |
It's no wizardry. Just go to music.youtube.com in your browser and try logged-in, logged-out, different languages etc. All this project does is send the same requests that are sent in your browser, so the results should always be the same. |
Describe the bug
When fetching audiobook content from YouTube Music using the API, there's an inconsistent behavior in album retrieval. While some artists like "Wieso? Weshalb? Warum?" return their complete catalog (~134 albums), other artists like Benjamin Blümchen return only a fraction of their content (10-22 albums out of 160+).
To Reproduce
Steps to reproduce the behavior:
Additional context
Example code showing the inconsistent behavior:
Attempted workarounds:
Expected behavior:
Actual behavior:
This inconsistency suggests the issue might be related to:
Environment:
The text was updated successfully, but these errors were encountered: