은승우

Update concert.js

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