Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -108,7 +108,11 @@ async function handleEvent(event) { | ... | @@ -108,7 +108,11 @@ async function handleEvent(event) { |
108 | 108 | ||
109 | } | 109 | } |
110 | 110 | ||
111 | - text.replace('\n','+'); | 111 | + text.replace('\n',''); |
112 | + if(text.length>20) | ||
113 | + { | ||
114 | + text=text.substring(8,20); | ||
115 | + } | ||
112 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); | 116 | var url="https://www.genie.co.kr/search/searchLyrics?query="+ encodeURI(text); |
113 | request(url, function(error, response, html){ | 117 | request(url, function(error, response, html){ |
114 | var $ = cheerio.load(html); | 118 | var $ = cheerio.load(html); | ... | ... |
-
Please register or login to post a comment