Update discordRichPresencePlex.py

This commit is contained in:
Phin 2018-12-22 10:15:54 +05:30
parent deaec09037
commit 2a270165db

View file

@ -376,6 +376,8 @@ def secondsToText(seconds, joiner = ""):
if (joiner == ""): if (joiner == ""):
text = [str(v) + k for k, v in text.items() if v > 0] text = [str(v) + k for k, v in text.items() if v > 0]
else: else:
if (text["h"] == 0):
del text["h"]
text = [str(v).rjust(2, "0") for k, v in text.items()] text = [str(v).rjust(2, "0") for k, v in text.items()]
return joiner.join(text) return joiner.join(text)