Clear speaker in very specific early exit

This commit is contained in:
DazedAnon 2026-06-22 06:12:40 -05:00
parent 0701385eaa
commit c3c7d7e909

View file

@ -2434,10 +2434,8 @@ def searchCodes(page, pbar, jobList, filename):
# Format String
if len(currentGroup) > 0:
rawSource = _group_raw_source(codeList, groupStart, sourceGroup)
if not rawSource.strip():
i += 1
continue
if not re.search(LANGREGEX, rawSource) and IGNORETLTEXT:
if (not rawSource.strip()) or (IGNORETLTEXT and not re.search(LANGREGEX, rawSource)):
speaker = ""
i += 1
continue