Invalid JSON returned on empty searches where itemSectionRenderer does not exist
MattieTK opened this issue · 3 comments
MattieTK commented
Describe the bug
Hi there,
This seems to happen when no results are returned:
eg. https://www.youtube.com/results?search_query=Benzinga+Live&sp=EgJAAQ%253D%253D
To Reproduce
Steps to reproduce the behavior:
- Make a search for which no results are returned
- See the error
TypeError: Cannot read property 'itemSectionRenderer' of undefined
Expected behavior
The search should return empty
Screenshots
The Bezinga search is the one that isn't returning at this time, and this is where the error is thrown.
Versions:
- Package: 2.1.3
- Node: 14.16
Additional context
I guess youtube changed their styling 😢
DrKain commented
Thanks for reporting. I'll take a look at this shortly
DrKain commented
Should be fixed in 2.1.4