Use couple wording for same-cast softcore camera prompts

This commit is contained in:
2026-06-28 01:07:54 +02:00
parent 8d58bfdf6a
commit 14f984a629
3 changed files with 82 additions and 4 deletions
+18 -2
View File
@@ -24,6 +24,22 @@ def camera_config_with_detail(
return camera_config
def softcore_subject_kind(softcore_cast: Any, hard_women_count: int, hard_men_count: int) -> str:
if str(softcore_cast) == "solo":
return "woman"
total = int(hard_women_count or 0) + int(hard_men_count or 0)
if total == 2:
return "couple"
return "subjects"
def hardcore_subject_kind(hard_women_count: int, hard_men_count: int) -> str:
total = int(hard_women_count or 0) + int(hard_men_count or 0)
if total == 2:
return "couple"
return "subjects"
@dataclass(frozen=True)
class InstaPairCameraRoute:
soft_row: dict[str, Any]
@@ -101,8 +117,8 @@ def resolve_insta_pair_camera_result(
soft_camera_directive, soft_camera_config_dict = camera_directive(soft_camera_config_dict)
hard_camera_directive, hard_camera_config_dict = camera_directive(hard_camera_config_dict)
soft_subject_kind = "woman" if options["softcore_cast"] == "solo" else "subjects"
hard_subject_kind = "couple" if hard_women_count + hard_men_count == 2 else "subjects"
soft_subject_kind = softcore_subject_kind(options["softcore_cast"], hard_women_count, hard_men_count)
hard_subject_kind = hardcore_subject_kind(hard_women_count, hard_men_count)
soft_row = apply_contextual_composition(soft_row, soft_subject_kind)
hard_row = apply_contextual_composition(hard_row, hard_subject_kind)