Promote anal hardcore action routing

This commit is contained in:
2026-06-27 19:11:44 +02:00
parent 08627be954
commit 658743d876
8 changed files with 32 additions and 14 deletions
+6 -2
View File
@@ -26,6 +26,7 @@ except ImportError: # Allows local smoke tests with `python -c`.
ACTION_CLIMAX = "climax"
ACTION_ANAL = "anal"
ACTION_FOREPLAY = "foreplay"
ACTION_MANUAL = "manual"
ACTION_OUTERCOURSE = "outercourse"
@@ -36,6 +37,7 @@ ACTION_DEFAULT = "default"
HARDCORE_ACTION_FAMILY_CHOICES = {
ACTION_CLIMAX,
ACTION_ANAL,
ACTION_FOREPLAY,
ACTION_MANUAL,
ACTION_OUTERCOURSE,
@@ -59,6 +61,9 @@ def normalize_hardcore_action_family(value: Any, default: str = "") -> str:
"toy_double_penetration": ACTION_TOY_DOUBLE,
"toy_assisted_double": ACTION_TOY_DOUBLE,
"toy_assisted_double_penetration": ACTION_TOY_DOUBLE,
"anal": ACTION_ANAL,
"anal_sex": ACTION_ANAL,
"anal_penetration": ACTION_ANAL,
"outer_course": ACTION_OUTERCOURSE,
"outercourse_sex": ACTION_OUTERCOURSE,
"manual": ACTION_MANUAL,
@@ -132,6 +137,7 @@ def source_hardcore_action_family(
}.get(family, family)
source_mapping = {
"penetrative": ACTION_PENETRATION,
"anal": ACTION_ANAL,
"foreplay": ACTION_FOREPLAY,
"interaction": ACTION_FOREPLAY,
"manual": ACTION_MANUAL,
@@ -139,6 +145,4 @@ def source_hardcore_action_family(
"outercourse": ACTION_OUTERCOURSE,
"climax": ACTION_CLIMAX,
}
if family == "anal":
return ACTION_DEFAULT
return source_mapping.get(family, inferred)