mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #472] Get_search_suggestions KeyError: 'searchSuggestionRenderer' #350
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#350
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 @nick42d on GitHub (Nov 16, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/472
Describe the bug


Google seems to have added history type suggestions to the search suggestions (example below from the app) at some point. These are under a different key to regular search suggestions so the current implementation will fail if history exists (example below of the JSON structure).
Proposal:
get_search_suggestions revised to:
To Reproduce
Steps to reproduce the behavior:
Additional notes
From the screenshot, seems there is also a way to delete search history suggestions, this could be a future enhancement
@sigma67 commented on GitHub (Jan 6, 2024):
was addressed in #495
the future enhancement to delete search suggestions is tracked in #497