mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #751] Wrong videoId in some of the objects returned by YTMusic.get_charts() #483
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#483
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 @borsattoz on GitHub (Mar 24, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/751
Describe the bug
In the
dictreturned byYTMusic.get_charts(), some of thevideoIds for the["videos"]["items"]objects are a reference to the builtinidfunction, instead of the video ID.To Reproduce
Inspect the object returned by a call to
YTMusic.get_charts(), namely some of the objects in the["videos"]["items"]list.Additional context
Below there's a sample item from the aforementioned list:
{'title': 'Badri Ki Dulhania', 'videoId': <built-in function id>, 'artists': [{'name': '2 min 53 sec', 'id': None}], 'playlistId': None, 'thumbnails': [{'url': 'https://i.ytimg.com/vi/1YBl3Zbt80A/sddefault.jpg?sqp=-oaymwEWCJADEOEBIAQqCghqEJQEGHgg6AJIWg&rs=AMzJL3me7vb3JnvvoO4Lmm6JAqgGj0U_BQ', 'width': 400, 'height': 225}, {'url': 'https://i.ytimg.com/vi/1YBl3Zbt80A/hq720.jpg?sqp=-oaymwEXCKAGEMIDIAQqCwjVARCqCBh4INgESFo&rs=AMzJL3k1qno-x_t5GtOk8-I6aysYfMLlOA', 'width': 800, 'height': 450}], 'views': 'Dev'},