fix: getLyrics() only working when signed-in

This commit is contained in:
LuanRT
2022-02-06 15:26:16 -03:00
parent 0c9f7135bf
commit 2b5027eb06

View File

@@ -64,7 +64,7 @@ async function engage(session, engagement_type, args = {}) {
* @returns {object} { success: boolean, status_code: number, data: object } | { success: boolean, status_code: number, message: string }
*/
async function browse(session, action_type, args = {}) {
if (!session.logged_in) throw new Error('You are not signed-in');
if (!session.logged_in && action_type != 'lyrics') throw new Error('You are not signed-in');
let data;
switch (action_type) { // TODO: Handle more actions