From 13d68b698551fcd49522c21679d06ab693ffe98e Mon Sep 17 00:00:00 2001 From: Anne <52967012+mocchapi@users.noreply.github.com> Date: Mon, 15 Jun 2020 22:37:48 +0200 Subject: [PATCH] v1.1.1 hotfix for timestamps --- main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 802ee5f..5b53e92 100644 --- a/main.py +++ b/main.py @@ -62,10 +62,12 @@ def stopFunction(): return True def milliFormat(milliseconds,subtractH=True): - if subtractH: - milliseconds = milliseconds-3600000 - return datetime.datetime.fromtimestamp(milliseconds / 1000).strftime('%H:%M:%S') - + try: + if subtractH: + millisecondos = milliseconds-3600000 + return datetime.datetime.fromtimestamp(millisecondos / 1000).strftime('%H:%M:%S') + except: + return datetime.datetime.fromtimestamp(milliseconds / 1000).strftime('%H:%M:%S') # player functions def closePlayerWindow(): @@ -533,7 +535,7 @@ def playerUI(): app.startSubWindow('window_player','PyCasts Player',transient=False,modal=False) app.setStopFunction(closePlayerWindow) app.setFont(size=12, family="Open Sans") - app.setSize(600, 350) + app.setSize(600, 400) app.setStretch('both')