code 101 speaker fix

This commit is contained in:
no 2025-11-20 08:39:40 +02:00
parent 6d714dc078
commit b13c8a05c1
2 changed files with 8 additions and 0 deletions

View file

@ -3674,6 +3674,10 @@ def getSpeaker(speaker: str):
if speaker == "":
return ["", [0, 0]]
# Preflight count mode: skip translation and caching entirely
if 'PREFLIGHT_COUNT_MODE' in globals() and PREFLIGHT_COUNT_MODE:
return [speaker, [0, 0]]
if SPEAKER_PARSE_MODE:
with _speakerCacheLock:
if speaker in _speakerCache:

View file

@ -3467,6 +3467,10 @@ def getSpeaker(speaker: str):
if speaker == "":
return ["", [0, 0]]
# Preflight count mode: skip translation and caching entirely
if 'PREFLIGHT_COUNT_MODE' in globals() and PREFLIGHT_COUNT_MODE:
return [speaker, [0, 0]]
if SPEAKER_PARSE_MODE:
with _speakerCacheLock:
if speaker in _speakerCache: