Adjust bracket catcher to include codes

This commit is contained in:
DazedAnon 2025-01-23 11:35:25 -06:00
parent a2a4c15e3b
commit ae988989c8

View file

@ -917,7 +917,12 @@ def searchCodes(page, pbar, jobList, filename):
# Brackets
if len(speakerList) == 0:
speakerList = re.findall(r"^【(.*?)】$", jaString)
speakerList = re.findall(r"^【(.*?)】$|^【(.*?)】[\\]*[a-zA-Z]*\[.*\]$", jaString)
if speakerList:
if speakerList[0][0]:
speakerList = [speakerList[0][0]]
else:
speakerList = [speakerList[0][1]]
# Colors
if len(speakerList) == 0: