Deduplicate pair caption cast descriptors

This commit is contained in:
2026-06-27 19:50:13 +02:00
parent 307ffdba3b
commit 4a3610fbc9
6 changed files with 41 additions and 6 deletions
+5 -6
View File
@@ -363,12 +363,11 @@ def insta_of_pair_from_row_result(
same_soft_cast = options.get("softcore_cast") == "same_as_hardcore"
parts = []
if cast_descriptor_text and same_soft_cast:
parts.append(deps.natural_cast_descriptor_text(cast_descriptor_text))
elif descriptor:
parts.append(f"A {descriptor}")
if cast_descriptor_text and not same_soft_cast:
parts.append(deps.natural_cast_descriptor_text(cast_descriptor_text))
if not soft_text and not hard_text:
if cast_descriptor_text:
parts.append(deps.natural_cast_descriptor_text(cast_descriptor_text))
elif descriptor:
parts.append(f"A {descriptor}")
if same_soft_cast and include_soft:
parts.append(
deps.softcore_caption_setup_phrase(