Spaces:
Running
Running
Merge pull request #377 from jhj0517/fix/webvtt
Browse files
modules/utils/subtitle_manager.py
CHANGED
@@ -405,6 +405,7 @@ def generate_file(
|
|
405 |
add_timestamp: bool = True, **kwargs
|
406 |
) -> Tuple[str, str]:
|
407 |
output_format = output_format.strip().lower().replace(".", "")
|
|
|
408 |
|
409 |
if add_timestamp:
|
410 |
timestamp = datetime.now().strftime("%m%d%H%M%S")
|
|
|
405 |
add_timestamp: bool = True, **kwargs
|
406 |
) -> Tuple[str, str]:
|
407 |
output_format = output_format.strip().lower().replace(".", "")
|
408 |
+
output_format = "vtt" if output_format == "webvtt" else output_format
|
409 |
|
410 |
if add_timestamp:
|
411 |
timestamp = datetime.now().strftime("%m%d%H%M%S")
|