권은령

fixing error not detect lyrics

Showing 1 changed file with 5 additions and 5 deletions
......@@ -171,10 +171,6 @@ function handleEvent(event)
lyric=$('#pLyrics > p').text();
lyric=lyric.substring(0, 150);
console.log(songList[userNum].song);
console.log(lyric);
});
return new Promise(function(resolve, reject)
{
//언어 감지 option
......@@ -184,7 +180,10 @@ function handleEvent(event)
form : {'query': lyric},
headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret}
};
console.log(songList[userNum].song);
console.log(lyric);
//papago 언어 감지
request.post(detect_options, (error,response,body)=>
{
......@@ -239,6 +238,7 @@ function handleEvent(event)
}
});
});
});
}
else
{
......