fixing bug where ms2playtime would no longer display days

This commit is contained in:
Rolux 2008-07-02 14:46:12 +02:00
parent df4e619b4f
commit 7e0d8c0796

View file

@ -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)