mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #712] Inconsistent Album Retrieval from YouTube Music API #465
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#465
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 @scharc on GitHub (Jan 6, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/712
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:
@sigma67 commented on GitHub (Jan 7, 2025):
The results are localized. If your (YTMusic instance client) language is English you will see fewer albums.
@scharc commented on GitHub (Jan 7, 2025):
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("browser.json", language="de")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.
@sigma67 commented on GitHub (Jan 7, 2025):
Are your authentication credentials valid? I only get the full list on authenticated accounts
@sigma67 commented on GitHub (Jan 7, 2025):
fwiw these types of issues are usually easier to debug by checking what's shown on the web view when using different accounts/settings
@scharc commented on GitHub (Jan 7, 2025):
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!
@scharc commented on GitHub (Jan 7, 2025):
I do not understand any of that. Maybe a guide could help others like me that are new to the api?
@sigma67 commented on GitHub (Jan 7, 2025):
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.