mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-03 09:35:05 +00:00
fix: getLyrics() only working when signed-in
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user