권은령

fixing error not detect lyrics

Showing 1 changed file with 5 additions and 5 deletions
...@@ -171,10 +171,6 @@ function handleEvent(event) ...@@ -171,10 +171,6 @@ function handleEvent(event)
171 lyric=$('#pLyrics > p').text(); 171 lyric=$('#pLyrics > p').text();
172 lyric=lyric.substring(0, 150); 172 lyric=lyric.substring(0, 150);
173 173
174 - console.log(songList[userNum].song);
175 - console.log(lyric);
176 - });
177 -
178 return new Promise(function(resolve, reject) 174 return new Promise(function(resolve, reject)
179 { 175 {
180 //언어 감지 option 176 //언어 감지 option
...@@ -184,7 +180,10 @@ function handleEvent(event) ...@@ -184,7 +180,10 @@ function handleEvent(event)
184 form : {'query': lyric}, 180 form : {'query': lyric},
185 headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret} 181 headers: {'X-Naver-Client-Id': client_id, 'X-Naver-Client-Secret': client_secret}
186 }; 182 };
187 - 183 +
184 + console.log(songList[userNum].song);
185 + console.log(lyric);
186 +
188 //papago 언어 감지 187 //papago 언어 감지
189 request.post(detect_options, (error,response,body)=> 188 request.post(detect_options, (error,response,body)=>
190 { 189 {
...@@ -239,6 +238,7 @@ function handleEvent(event) ...@@ -239,6 +238,7 @@ function handleEvent(event)
239 } 238 }
240 }); 239 });
241 }); 240 });
241 + });
242 } 242 }
243 else 243 else
244 { 244 {
......