은승우

Update concert.js

...@@ -131,15 +131,15 @@ function handleEvent(event) { ...@@ -131,15 +131,15 @@ function handleEvent(event) {
131 type: 'video'} 131 type: 'video'}
132 }; 132 };
133 133
134 - var videourl = { type: 'url', label: '관련 영상', url:''};
135 134
136 request(options, function(error,result,body){ 135 request(options, function(error,result,body){
137 if(error) throw new Error(error); 136 if(error) throw new Error(error);
137 + var videourl = { type: 'uri', label: '관련 영상', uri:''};
138 138
139 var temp1 = body.split(':'); 139 var temp1 = body.split(':');
140 - videourl.url += "https://www.youtube.com/watch?v=" + temp1[13].substr(2,11); 140 + videourl.uri += "https://www.youtube.com/watch?v=" + temp1[13].substr(2,11);
141 141
142 - console.log(videourl.url); 142 + console.log(videourl.uri);
143 client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject); 143 client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject);
144 }); 144 });
145 }); 145 });
......