code 101 speaker fix
This commit is contained in:
parent
6d714dc078
commit
b13c8a05c1
2 changed files with 8 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue