Update formatters.py
corrected hours calculation logic in class WebVTTFormatter method _seconds_to_timestamp for transcripts with more than an hour length
This commit is contained in:
parent
c5bf0132ff
commit
6f4ab9decd
|
@ -95,8 +95,9 @@ class WebVTTFormatter(Formatter):
|
|||
'00:00:06.930'
|
||||
"""
|
||||
time = float(time)
|
||||
hours, mins, secs = (
|
||||
int(time) // 3600,
|
||||
hours= int(time) // 3600
|
||||
time= time - hours*3600
|
||||
mins, secs = (
|
||||
int(time) // 60,
|
||||
int(time) % 60,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue