jhj0517 commited on
Commit
be000f4
·
unverified ·
2 Parent(s): 50380bc 4e33cb4

Merge pull request #377 from jhj0517/fix/webvtt

Browse files
Files changed (1) hide show
  1. modules/utils/subtitle_manager.py +1 -0
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")