Fix single-speaker quotes missing character identifier

This commit is contained in:
Xevion
2022-05-22 18:36:23 -05:00
parent 39cd8f99ba
commit 36c360ea0f
185 changed files with 186 additions and 184 deletions

View File

@@ -729,6 +729,8 @@ def app(path: str, make_dir: bool) -> None:
split_speaker_text[index] = '{' + character.text + '}'
quote_json['speaker'] = ''.join(split_speaker_text)
else:
quote_json['character'] = quote.xpath('./Speaker/Characters/Character/text()')[0]
quotes.append(quote_json)
scenes.append({'quotes': quotes})