Merge branch 'main' into 'main'
code 101 speaker fix See merge request DazedAnon/DazedMTLTool!29
This commit is contained in:
commit
b4a64f6c3c
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