[GH-ISSUE #751] Wrong videoId in some of the objects returned by YTMusic.get_charts() #483

Closed
opened 2026-02-27 23:01:02 +03:00 by kerem · 0 comments
Owner

Originally created by @borsattoz on GitHub (Mar 24, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/751

Describe the bug
In the dict returned by YTMusic.get_charts(), some of the videoIds for the ["videos"]["items"] objects are a reference to the builtin id function, 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'},

Originally created by @borsattoz on GitHub (Mar 24, 2025). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/751 **Describe the bug** In the `dict` returned by `YTMusic.get_charts()`, some of the `videoId`s for the `["videos"]["items"]` objects are a reference to the builtin `id` function, 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'},`
kerem closed this issue 2026-02-27 23:01:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#483
No description provided.