LAP-DEV commited on
Commit
1ca8bfc
·
verified ·
1 Parent(s): 9a005ca

Update modules/utils/subtitle_manager.py

Browse files
Files changed (1) hide show
  1. modules/utils/subtitle_manager.py +1 -1
modules/utils/subtitle_manager.py CHANGED
@@ -13,7 +13,7 @@ def timeformat_txt(time):
13
  minutes = (time - hours * 3600) // 60
14
  seconds = time - hours * 3600 - minutes * 60
15
  #milliseconds = (time - int(time)) * 1000
16
- if hours >= 0:
17
  return f"{int(hours):02d}:{int(minutes):02d}:{int(seconds):02d}"
18
  else:
19
  return f"{int(minutes):02d}:{int(seconds):02d}"
 
13
  minutes = (time - hours * 3600) // 60
14
  seconds = time - hours * 3600 - minutes * 60
15
  #milliseconds = (time - int(time)) * 1000
16
+ if hours > 0:
17
  return f"{int(hours):02d}:{int(minutes):02d}:{int(seconds):02d}"
18
  else:
19
  return f"{int(minutes):02d}:{int(seconds):02d}"