From 7e0d8c07963408e743fed350910db6e6d80141c8 Mon Sep 17 00:00:00 2001 From: Rolux Date: Wed, 2 Jul 2008 14:46:12 +0200 Subject: [PATCH] fixing bug where ms2playtime would no longer display days --- oxutils/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxutils/format.py b/oxutils/format.py index b4c3e9b..544dcbf 100644 --- a/oxutils/format.py +++ b/oxutils/format.py @@ -193,7 +193,7 @@ def ms2playtime(ms, hours=False): dd = int(hh / 24) hh = hh % 24 playtime= "%d:%02d:%02d:%02d" % (dd, hh, mm, ss) - if hh or hours: + elif hh or hours: playtime= "%02d:%02d:%02d" % (hh, mm, ss) else: playtime= "%02d:%02d" % (mm, ss)