Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -209,7 +209,8 @@ function handleEvent(event) { | ... | @@ -209,7 +209,8 @@ function handleEvent(event) { |
| 209 | text+=data.substring(0,data.indexOf("\\"))+" "; | 209 | text+=data.substring(0,data.indexOf("\\"))+" "; |
| 210 | } | 210 | } |
| 211 | text=text.substring(text.length/10+1,text.length/8+2); | 211 | text=text.substring(text.length/10+1,text.length/8+2); |
| 212 | - text=text.replace(' ','+'); | 212 | + text=text.replace(' ',''); |
| 213 | + text=text.substr(0,text.indexOf(' ')); | ||
| 213 | console.log(text); | 214 | console.log(text); |
| 214 | var url="https://www.genie.co.kr/search/searchLyrics?query="+text; | 215 | var url="https://www.genie.co.kr/search/searchLyrics?query="+text; |
| 215 | request(url, function(error, response, html) | 216 | request(url, function(error, response, html) | ... | ... |
-
Please register or login to post a comment