권은령

fixing error not detect lyrics

Showing 1 changed file with 4 additions and 4 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
......@@ -185,6 +181,9 @@ function handleEvent(event)
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
{
......