From 0c7dcc8093fe40b69e4cdf792489b572157ebdf9 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:00:42 -0700 Subject: [PATCH] Fix detect language flow for non-bazarr --- subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen.py b/subgen.py index 8cf20b6..0ab9951 100644 --- a/subgen.py +++ b/subgen.py @@ -131,7 +131,7 @@ def transcription_worker(): if "type" in task and task["type"] == "detect_language": detect_language_task(task['path']) - if 'Bazarr-' in task['path']: + elif 'Bazarr-' in task['path']: logging.info(f"Task {task['path']} is being handled by ASR.") else: logging.info(f"Task {task['path']} is being handled by Subgen.")