From 7e9b87c8006aab81b2291d941cd50e0b3be884d7 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 19 Feb 2024 23:12:30 -0700 Subject: [PATCH] Update subgen.py --- subgen/subgen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index 16fc49c..dceb883 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -83,7 +83,8 @@ def appendLine(result): lastSegment.id += 1 lastSegment.start += TIME_OFFSET lastSegment.end += TIME_OFFSET - lastSegment.text = f"Transcribed by whisperAI with faster-whisper ({whisper_model}) on {datetime.now()}" + date_time_str = datetime.now().strftime("%d %B %Y %H:%M:%S") + lastSegment.text = f"Transcribed by whisperAI with faster-whisper ({whisper_model}) on {date_time_str}" lastSegment.words = [] # lastSegment.words[0].word = lastSegment.text # lastSegment.words = lastSegment.words[:len(lastSegment.words)-1]