Adjust bracket catcher to include codes
This commit is contained in:
parent
a2a4c15e3b
commit
ae988989c8
1 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue