Fixed ExploitedX not matching some age fields.
This commit is contained in:
@@ -81,7 +81,7 @@ function scrapeProfile({ query }, _entity) {
|
|||||||
|
|
||||||
const bio = Object.fromEntries(keys.map((key, index) => [slugify(key, '_'), values[index]]));
|
const bio = Object.fromEntries(keys.map((key, index) => [slugify(key, '_'), values[index]]));
|
||||||
|
|
||||||
profile.age = Number(bio.age) || null;
|
profile.age = unprint.extractNumber(bio.age);
|
||||||
profile.height = convert(bio.height, 'cm');
|
profile.height = convert(bio.height, 'cm');
|
||||||
profile.measurements = bio.measurements;
|
profile.measurements = bio.measurements;
|
||||||
|
|
||||||
|
|||||||
@@ -91,11 +91,13 @@ function scrapeProfile({ query }, { url }) {
|
|||||||
profile.description = [query.content('.model-bio-text, #performer-description'), bio.funfact].filter(Boolean).join(' ');
|
profile.description = [query.content('.model-bio-text, #performer-description'), bio.funfact].filter(Boolean).join(' ');
|
||||||
profile.aliases = bio.alias?.split(/[,\n]/).map((alias) => alias.trim());
|
profile.aliases = bio.alias?.split(/[,\n]/).map((alias) => alias.trim());
|
||||||
|
|
||||||
profile.age = parseInt(bio.age, 10) || null;
|
profile.age = unprint.extractNumber(bio.age);
|
||||||
profile.dateOfBirth = unprint.extractDate(bio.age, 'MM/DD/YYYY');
|
profile.dateOfBirth = unprint.extractDate(bio.age, 'MM/DD/YYYY');
|
||||||
profile.measurements = bio.measurements;
|
profile.measurements = bio.measurements;
|
||||||
profile.height = Number(bio.height?.match(/(\d+)\s*cm/)?.[1]) || convert(bio.height, 'cm');
|
profile.height = Number(bio.height?.match(/(\d+)\s*cm/)?.[1]) || convert(bio.height, 'cm');
|
||||||
|
|
||||||
|
console.log(profile);
|
||||||
|
|
||||||
return profile;
|
return profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ const actors = [
|
|||||||
{ entity: 'amateurallure', name: 'Ava Amira', fields: ['avatar', 'description'] },
|
{ entity: 'amateurallure', name: 'Ava Amira', fields: ['avatar', 'description'] },
|
||||||
{ entity: 'swallowsalon', name: 'Abella Danger', fields: ['avatar'] },
|
{ entity: 'swallowsalon', name: 'Abella Danger', fields: ['avatar'] },
|
||||||
// exploitedx
|
// exploitedx
|
||||||
{ entity: 'exploitedx', name: 'Amber Moore', url: 'https://exploitedcollegegirls.com/models/AmberMoore.html', fields: ['avatar', 'description', 'age', 'height', 'measurements'] },
|
{ entity: 'exploitedx', name: 'Amber Moore', url: 'https://exploitedcollegegirls.com/models/Amber-Moore.html', fields: ['avatar', 'description', 'age', 'height', 'measurements'] },
|
||||||
{ entity: 'exploitedx', name: 'Amber Moore', url: 'https://bbcsurprise.com/models/AmberMoore.html', fields: ['avatar', 'age'] },
|
{ entity: 'exploitedx', name: 'Amber Moore', url: 'https://bbcsurprise.com/models/AmberMoore.html', fields: ['avatar', 'age'] },
|
||||||
{ entity: 'exploitedx', name: 'Megan Marx', url: 'https://excogigirls.com/models/megan-marx.html', fields: ['avatar', 'description', 'age', 'height', 'measurements'] },
|
{ entity: 'exploitedx', name: 'Megan Marx', url: 'https://excogigirls.com/models/megan-marx.html', fields: ['avatar', 'description', 'age', 'height', 'measurements'] },
|
||||||
{ entity: 'exploitedx', name: 'Sophie Hunt', url: 'https://www.backroomcastingcouch.com/models/Sophie-Hunt.html', fields: ['avatar', 'age'] },
|
{ entity: 'exploitedx', name: 'Sophie Hunt', url: 'https://www.backroomcastingcouch.com/models/Sophie-Hunt.html', fields: ['avatar', 'age'] },
|
||||||
@@ -375,7 +375,7 @@ async function init() {
|
|||||||
validators[field]
|
validators[field]
|
||||||
? await validators[field](profile[field])
|
? await validators[field](profile[field])
|
||||||
: typeof profile[field] !== 'undefined',
|
: typeof profile[field] !== 'undefined',
|
||||||
`broken field ${field}, got ${profile[field]}`,
|
`broken field ${field}, got ${profile[field]} for ${actor.name}`,
|
||||||
);
|
);
|
||||||
}));
|
}));
|
||||||
})));
|
})));
|
||||||
|
|||||||
Reference in New Issue
Block a user