From c28da62ec1fd0ae553a0bdb2a70664c9063d84ff Mon Sep 17 00:00:00 2001 From: "luan.lrt4@gmail.com" Date: Wed, 13 Apr 2022 18:30:52 -0300 Subject: [PATCH] fix: ytmusic search suggestions not working, closes #20 --- lib/core/Actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/Actions.js b/lib/core/Actions.js index e45a6ac9..da2dc60f 100644 --- a/lib/core/Actions.js +++ b/lib/core/Actions.js @@ -174,7 +174,7 @@ async function music(session, action, args) { context.client.clientVersion = Constants.YTMUSIC_VERSION; context.client.clientName = 'WEB_REMIX'; - let data; + let data = {}; switch (action) { case 'get_search_suggestions': @@ -410,4 +410,4 @@ async function getYTSearchSuggestions(session, query) { }; } -module.exports = { engage, browse, account, music, search, notifications, livechat, getVideoInfo, next, getYTSearchSuggestions }; \ No newline at end of file +module.exports = { engage, browse, account, music, search, notifications, livechat, getVideoInfo, next, getYTSearchSuggestions };