fixing bug where ms2playtime would no longer display days
This commit is contained in:
parent
df4e619b4f
commit
7e0d8c0796
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ def ms2playtime(ms, hours=False):
|
||||||
dd = int(hh / 24)
|
dd = int(hh / 24)
|
||||||
hh = hh % 24
|
hh = hh % 24
|
||||||
playtime= "%d:%02d:%02d:%02d" % (dd, hh, mm, ss)
|
playtime= "%d:%02d:%02d:%02d" % (dd, hh, mm, ss)
|
||||||
if hh or hours:
|
elif hh or hours:
|
||||||
playtime= "%02d:%02d:%02d" % (hh, mm, ss)
|
playtime= "%02d:%02d:%02d" % (hh, mm, ss)
|
||||||
else:
|
else:
|
||||||
playtime= "%02d:%02d" % (mm, ss)
|
playtime= "%02d:%02d" % (mm, ss)
|
||||||
|
|
Loading…
Reference in a new issue