Fixed Pascals Sub Sluts interpreting metric as imperial height, filtering unlikely in interpolation. Splitting double actor entries in Top Web Models.

This commit is contained in:
DebaucheryLibrarian 2021-01-15 16:14:48 +01:00
parent 7e78a39717
commit b9e4764516
3 changed files with 13 additions and 8 deletions

View File

@ -504,7 +504,6 @@ async function interpolateProfiles(actorIdsOrNames) {
'penis_girth',
'circumcised',
'natural_boobs',
'height',
'hair_color',
'eyes',
'has_tattoos',
@ -519,6 +518,8 @@ async function interpolateProfiles(actorIdsOrNames) {
...mostFrequentValues,
};
profile.height = getMostFrequent(valuesByProperty.height.filter(height => height > 50 && height < 300)); // remove unlikely values
profile.date_of_birth = getMostFrequentDate(valuesByProperty.date_of_birth);
profile.date_of_death = getMostFrequentDate(valuesByProperty.date_of_death);
profile.age = getHighest(valuesByProperty.age);

View File

@ -63,7 +63,7 @@ function scrapeProfile({ query }) {
profile.gender = 'female';
profile.nationality = bio.nationality;
profile.height = feetInchesToCm(bio.height);
profile.height = /cm/.test(bio.height) ? parseInt(bio.height, 10) : feetInchesToCm(bio.height);
profile.age = bio.age;
profile.hairColor = bio.hair;

View File

@ -16,12 +16,16 @@ function scrapeSceneX(scene) {
release.duration = qu.durationToSeconds(scene.videos_duration);
release.date = new Date(scene.release_date);
release.actors = scene.models.map(actor => ({
name: actor.name,
gender: actor.gender || null,
avatar: actor.thumb,
url: `https://tour.topwebmodels.com/models/${actor.id}/${slugify(actor.name)}`,
}));
release.actors = scene.models
.map(actor => (/&/.test(actor.name)
? actor.name.split(/\s*&\s*/)
: {
name: actor.name,
gender: actor.gender || null,
avatar: actor.thumb,
url: `https://tour.topwebmodels.com/models/${actor.id}/${slugify(actor.name)}`,
}))
.flat();
release.stars = scene.rating;
release.tags = scene.tags.map(tag => tag.name);