TimeForANinja / node-ytsr

Do anonymous YouTube search requests.
MIT License
286 stars 66 forks source link

Update utils.js (fix TypeError: filterWrapper is not iterable) #207

Closed TheTechromancer closed 1 year ago

TheTechromancer commented 1 year ago

Fix TypeError: filterWrapper is not iterable

Fixes https://github.com/TimeForANinja/node-ytsr/issues/180, https://github.com/codetheweb/muse/issues/948

nukeop commented 1 year ago

This isn't going to help since the search list will simply be empty. So it technically solves the problem with the undefined variable but the search still fails.

TheTechromancer commented 1 year ago

I'm not sure exactly why, but in my testing this change made a big difference. Before, even searching for a very common song (such as grimes realiti) would throw the error and fail to play. But the exact same query with the fix would succeed.

TimeForANinja commented 1 year ago

closing in favor of #203