mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #787] fix/rework get_charts #501
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#501
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 @MarshallARoss on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/787
Originally assigned to: @sgvictorino on GitHub.
Describe the bug
'get_charts()' function crashes
ytmusicapi version
v1.10.3
To Reproduce
Steps to reproduce the behavior:
I've seen this happen in the past when there is a '/' on a trending song on the charts.
@sgvictorino commented on GitHub (Jul 24, 2025):
Among other things, they've removed trending videos from the charts page. @sigma67 would a PR that reflects the changes and adds a separate
get_trendsfunction to fetch the data fromFEmusic_explorebe alright?@sigma67 commented on GitHub (Jul 24, 2025):
Yeah I was just checking this. They've shuffled things around quite a bit.
For sure, feel free to send a PR.
I think
get_exploreas function/API title would match what's shown in the UI. For me it showsLogged out: as below, but "Top songs" missing.
Logged in:
Ideally that function would return the data being shown.
Not sure if the moods one is worth it since you can get it via
get_mood_categories. But might as well return what you get.get_chartsalso needs to be adapted to the new data being shown:Logged out:
Logged in/Premium:
Some of the old logic in
get_chartsmight be worth keeping forget_explore, since top songs is still only present when logged in.@sigma67 commented on GitHub (Jul 26, 2025):
We can also split this into two packages for
get_exploreandget_charts, since it's quite a bit to change.@sigma67 commented on GitHub (Jul 29, 2025):
This issue is now about returning the contents on: https://music.youtube.com/charts
@sigma67 commented on GitHub (Jul 30, 2025):
@sgvictorino did you want to tackle either one? sorry if I assigned prematurely
@sgvictorino commented on GitHub (Jul 30, 2025):
Yes, I've been working on a PR for both and will hopefully finish it soon. No worries about the assignment!
@sigma67 commented on GitHub (Jul 30, 2025):
Good to know, take the time you need