3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-23 18:44:14 +01:00

fix seconds counter (thanks trapdoor)

This commit is contained in:
reality 2015-04-20 20:16:03 +00:00
parent f6f6de508b
commit 57a2a12814

View File

@ -29,7 +29,7 @@ var youtube = function(dbot) {
this.internalAPI = {
'formatLink': function(v) {
var time = v.contentDetails.duration.match(/^PT(\d+)M(\d+)S$/),
seconds = time[2],
seconds =((time[2]%60 < 10) ? "0"+time[2]%60 : time[2]%60),
minutes = time[1];
var res = dbot.t('yt_video', {