$ git clone http://tcclient.ion.nu/tc_client.git
commit 5be0268514800490b1085a3f1017dea0e7a52a07
Author: Alicia <...>
Date: Thu May 28 21:33:48 2015 +0200
modbot: fixed finding the duration of videos longer than 59 minutes (conversion from hh:mm:ss format to seconds)
diff --git a/ChangeLog b/ChangeLog
index 8b5aa65..19ecf4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+0.33:
+modbot: fixed finding the duration of videos longer than 59 minutes (conversion from hh:mm:ss format to seconds)
0.32:
Added an 'install' make target, adjusted utilities to run tc_client from PATH unless they were run from the build directory (i.e. './<executable>')
Provide feedback on the /ban command.
diff --git a/Makefile b/Makefile
index 0f94ec1..14a27ac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION=0.32
+VERSION=0.33pre
CFLAGS=-g3 -Wall $(shell curl-config --cflags)
LIBS=-g3 $(shell curl-config --libs)
PREFIX=/usr/local
diff --git a/utilities/modbot/modbot.c b/utilities/modbot/modbot.c
index ca8ba83..7256df1 100644
--- a/utilities/modbot/modbot.c
+++ b/utilities/modbot/modbot.c
@@ -128,10 +128,10 @@ unsigned int getduration(const char* vid)
if(sep){sep[0]=0; len+=atoi(&sep[1])*60;}
// Hours
sep=strrchr(timebuf, ':');
- if(sep){sep[0]=0; len+=atoi(&sep[1])*60;}
+ if(sep){sep[0]=0; len+=atoi(&sep[1])*60*60;}
// Days
sep=strrchr(timebuf, ':');
- if(sep){sep[0]=0; len+=atoi(&sep[1])*24;}
+ if(sep){sep[0]=0; len+=atoi(&sep[1])*60*60*24;}
return len;
}