Skip to content

Commit

Permalink
v1.1.1 hotfix for timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
mocchapi committed Jun 15, 2020
1 parent f130cab commit 13d68b6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 13d68b6

Please sign in to comment.