Update modules/utils/subtitle_manager.py
Browse files
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
|
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}"
|