From 5bf1e24d02473478c71584e088afa0538600c305 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 27 Apr 2015 09:49:53 +0000 Subject: [PATCH] fix for below one minite --- modules/youtube/youtube.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/youtube/youtube.js b/modules/youtube/youtube.js index 28a86fb..4943c5b 100644 --- a/modules/youtube/youtube.js +++ b/modules/youtube/youtube.js @@ -33,7 +33,8 @@ var youtube = function(dbot) { var seconds =((time[2]%60 < 10) ? "0"+time[2]%60 : time[2]%60), minutes = time[1]; } else { - seconds =((time[1]%60 < 10) ? "0"+time[1]%60 : time[1]%60); + var seconds =((time[1]%60 < 10) ? "0"+time[1]%60 : time[1]%60), + minutes = 0; } var res = dbot.t('yt_video', {