Expanded puppeteer options. Fixed Mike Adriano scraper. Fixed convert utility.
This commit is contained in:
@@ -443,13 +443,13 @@ async function curateProfile(profile, actor) {
|
||||
curatedProfile.hip = Number(profile.hip) || profile.hip?.match?.(/\d+/)?.[0] || null;
|
||||
|
||||
// combined measurement value
|
||||
const measurements = profile.measurements?.match(/(\d+)(\w+)\s*[-x]\s*(\d+)\s*[-x]\s*(\d+)/); // ExCoGi uses x, Jules Jordan has spaces between the dashes
|
||||
const measurements = profile.measurements?.match(/(\d+)(\w+)(?:\s*[-x]\s*(\d+)\s*[-x]\s*(\d+))?/); // ExCoGi uses x, Jules Jordan has spaces between the dashes
|
||||
|
||||
if (measurements) {
|
||||
curatedProfile.bust = Number(measurements[1]);
|
||||
curatedProfile.cup = measurements[2];
|
||||
curatedProfile.waist = Number(measurements[3]);
|
||||
curatedProfile.hip = Number(measurements[4]);
|
||||
curatedProfile.bust = Number(measurements[1]) || null;
|
||||
curatedProfile.cup = measurements[2] || null;
|
||||
curatedProfile.waist = Number(measurements[3]) || null;
|
||||
curatedProfile.hip = Number(measurements[4]) || null;
|
||||
}
|
||||
|
||||
curatedProfile.penisLength = Number(profile.penisLength) || profile.penisLength?.match?.(/\d+/)?.[0] || null;
|
||||
|
||||
Reference in New Issue
Block a user