Actually fix the bug this time

This commit is contained in:
Dazed 2024-04-25 18:22:21 -05:00
parent 04d63b09f3
commit 4fa3f71933

View file

@ -796,7 +796,7 @@ def searchCodes(page, pbar, jobList, filename):
regex = r'(.*?)([\\]+[kKnN][wWcC]?[<](.*?)[>].*)'
nCase = 0
else:
regex = r'(.*[\\]+[kKnN][wWcC]?[<](.*?)[>])(.*)'
regex = r'([\\]+[kKnN][wWcC]?[<](.*?)[>])'
nCase = 1
matchList = re.findall(regex, finalJAString)
if len(matchList) > 0:
@ -804,8 +804,8 @@ def searchCodes(page, pbar, jobList, filename):
nametag = matchList[0][1]
speaker = matchList[0][2]
elif nCase == 1:
nametag = matchList[0][1]
speaker = matchList[0][2]
nametag = matchList[0][0]
speaker = matchList[0][1]
# Translate Speaker
response = getSpeaker(speaker)