권은령

modify functions

Showing 1 changed file with 2 additions and 2 deletions
...@@ -125,7 +125,7 @@ function handleEvent(event) { ...@@ -125,7 +125,7 @@ function handleEvent(event) {
125 var $ = cheerio.load(html); 125 var $ = cheerio.load(html);
126 126
127 lyric=$('#pLyrics > p').text(); 127 lyric=$('#pLyrics > p').text();
128 - lyric=lyric.substring(0, 150); 128 + lyric=lyric.substring(0, 300);
129 129
130 return new Promise(function(resolve, reject) 130 return new Promise(function(resolve, reject)
131 { 131 {
...@@ -222,7 +222,7 @@ function handleEvent(event) { ...@@ -222,7 +222,7 @@ function handleEvent(event) {
222 data=data.substring(data.indexOf('text\\')+9); 222 data=data.substring(data.indexOf('text\\')+9);
223 text+=data.substring(0,data.indexOf("\\"))+" "; 223 text+=data.substring(0,data.indexOf("\\"))+" ";
224 } 224 }
225 - text=text.substring(text.length/10+1,text.length/8+2); 225 + text=text.substring(text.length/10+1,text.length/8+10);
226 text=text.replace(' ',''); 226 text=text.replace(' ','');
227 text=text.substr(0,text.indexOf(' ')); 227 text=text.substr(0,text.indexOf(' '));
228 console.log(text); 228 console.log(text);
......