From e2dd80e3dda176ee51580448e29cf7e81f50e55f Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Fri, 9 Feb 2024 10:14:57 -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 cfc7cc4..cd7df85 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -272,7 +272,7 @@ def gen_subtitles(file_path: str, transcribe_or_translate_str: str, front=True) logging.debug(f"{file_path} already has an internal sub we want, skipping generation") return f"{file_path} already has an internal sub we want, skipping generation" elif os.path.exists(get_file_name_without_extension(file_path) + subextension): - print(f"{file_path} already has a subgen created for this, skipping it") + logging.debug(f"{file_path} already has a subgen created for this, skipping it") return f"{file_path} already has a subgen created for this, skipping it" if front: @@ -288,6 +288,7 @@ def gen_subtitles(file_path: str, transcribe_or_translate_str: str, front=True) start_model() if(force_detected_language_to): + logging.debug(f"Forcing detected audio language to {force_detected_language_to}") result = model.transcribe_stable(file_path, language=force_detected_language_to, task=transcribe_or_translate_str) else: result = model.transcribe_stable(file_path, task=transcribe_or_translate_str)