forked from DebaucheryLibrarian/traxxx
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:
parent
7e78a39717
commit
b9e4764516
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 => ({
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue