Added Zero Tolerance with Addicted 2 Girls and GenderX.

This commit is contained in:
DebaucheryLibrarian
2020-09-04 03:07:28 +02:00
parent 21cc88dfea
commit 3c84a814a8
24 changed files with 185 additions and 9 deletions

View File

@@ -302,9 +302,8 @@ async function curateProfile(profile) {
curatedProfile.piercings = profile.piercings?.trim() || null;
curatedProfile.gender = (/female/i.test(profile.gender) && 'female')
|| (/shemale/i.test(profile.gender) && 'transsexual')
|| (/shemale|trans/i.test(profile.gender) && 'transsexual')
|| (/male/i.test(profile.gender) && 'male')
|| (/trans/i.test(profile.gender) && 'transsexual')
|| null;
const dateOfBirth = profile.dateOfBirth || profile.birthdate;
@@ -725,15 +724,14 @@ async function getOrCreateActors(baseActors, batchId) {
},
}), {});
const newActorProfiles = baseActors
const newActorProfiles = await Promise.all(baseActors
.filter(actor => actor.hasProfile)
.map(actor => ({
...actor,
id: newActorIdsByEntityIdAndSlug[actor.entity?.id]?.[actor.slug] || newActorIdsByEntityIdAndSlug.null?.[actor.slug],
}))
.filter(actor => !!actor.id);
console.log(newActorIdsByEntityIdAndSlug, newActorProfiles);
.filter(actor => !!actor.id)
.map(actor => curateProfile(actor)));
await storeProfiles(newActorProfiles);