From 8d163b18809ad08ad04446a90981af66a9b27b4d Mon Sep 17 00:00:00 2001 From: McCloudS Date: Sat, 8 Feb 2025 10:43:33 -0700 Subject: [PATCH] Update subgen.py --- subgen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subgen.py b/subgen.py index f863280..573a525 100644 --- a/subgen.py +++ b/subgen.py @@ -1,4 +1,4 @@ -subgen_version = '2025.02.68' +subgen_version = '2025.02.69' from language_code import LanguageCode from datetime import datetime @@ -178,6 +178,8 @@ task_queue = DeduplicatedQueue() def transcription_worker(): while True: + if task_queue.is_idle(): + continue task = task_queue.get(block=True, timeout=1) try: if "type" in task and task["type"] == "detect_language":