Skip to content

Commit 13d68b6

Browse files
authored
v1.1.1 hotfix for timestamps
1 parent f130cab commit 13d68b6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

main.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ def stopFunction():
6262
return True
6363

6464
def milliFormat(milliseconds,subtractH=True):
65-
if subtractH:
66-
milliseconds = milliseconds-3600000
67-
return datetime.datetime.fromtimestamp(milliseconds / 1000).strftime('%H:%M:%S')
68-
65+
try:
66+
if subtractH:
67+
millisecondos = milliseconds-3600000
68+
return datetime.datetime.fromtimestamp(millisecondos / 1000).strftime('%H:%M:%S')
69+
except:
70+
return datetime.datetime.fromtimestamp(milliseconds / 1000).strftime('%H:%M:%S')
6971
# player functions
7072

7173
def closePlayerWindow():
@@ -533,7 +535,7 @@ def playerUI():
533535
app.startSubWindow('window_player','PyCasts Player',transient=False,modal=False)
534536
app.setStopFunction(closePlayerWindow)
535537
app.setFont(size=12, family="Open Sans")
536-
app.setSize(600, 350)
538+
app.setSize(600, 400)
537539

538540

539541
app.setStretch('both')

0 commit comments

Comments
 (0)