From 10f853c921dfc714f5f51b0749819d4ce809fe2f Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 27 Apr 2015 09:51:45 +0000 Subject: [PATCH] fix for below one minite --- modules/youtube/youtube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/youtube/youtube.js b/modules/youtube/youtube.js index 5fc7577..17ebb80 100644 --- a/modules/youtube/youtube.js +++ b/modules/youtube/youtube.js @@ -29,7 +29,7 @@ var youtube = function(dbot) { this.internalAPI = { 'formatLink': function(v) { var time = v.contentDetails.duration.match(/^PT(\d+)?M?(\d+)S$/); - if(time[2]) { + if(time[1]) { var seconds =((time[2]%60 < 10) ? "0"+time[2]%60 : time[2]%60), minutes = time[1]; } else {