Added Zero Tolerance with Addicted 2 Girls and GenderX.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user