Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -105,11 +105,12 @@ async function handleEvent(event) { | ... | @@ -105,11 +105,12 @@ async function handleEvent(event) { |
105 | text=''; | 105 | text=''; |
106 | while(jsonResponse.indexOf('text')!=-1) | 106 | while(jsonResponse.indexOf('text')!=-1) |
107 | { | 107 | { |
108 | - jsonResponse=jsonResponse.substring(jsonResponse.indexOf('text')+5); | 108 | + jsonResponse=jsonResponse.substring(jsonResponse.indexOf('text')+6); |
109 | text+=jsonResponse.substring(0,jsonResponse.indexOf("}"))+" "; | 109 | text+=jsonResponse.substring(0,jsonResponse.indexOf("}"))+" "; |
110 | - console.log("text:"+text); | ||
111 | 110 | ||
112 | } | 111 | } |
112 | + console.log("text:"+text); | ||
113 | + | ||
113 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); | 114 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); |
114 | console.log(url); | 115 | console.log(url); |
115 | request(url, function(error, response, html){ | 116 | request(url, function(error, response, html){ | ... | ... |
-
Please register or login to post a comment