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:
parent
f6f6de508b
commit
57a2a12814
@ -29,7 +29,7 @@ var youtube = function(dbot) {
|
|||||||
this.internalAPI = {
|
this.internalAPI = {
|
||||||
'formatLink': function(v) {
|
'formatLink': function(v) {
|
||||||
var time = v.contentDetails.duration.match(/^PT(\d+)M(\d+)S$/),
|
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];
|
minutes = time[1];
|
||||||
|
|
||||||
var res = dbot.t('yt_video', {
|
var res = dbot.t('yt_video', {
|
||||||
|
Loading…
Reference in New Issue
Block a user