Added Brazzers and Jules Jordan as profile sources. Changed profile structure for proper bust-waist-hip properties and improved stability.

This commit is contained in:
ThePendulum 2019-11-21 04:05:32 +01:00
parent 9fcc40dd17
commit 9224b441e2
12 changed files with 224 additions and 60 deletions

View File

@ -71,10 +71,9 @@
<span>{{ actor.height }} cm</span> <span>{{ actor.height }} cm</span>
</li> </li>
<li v-if="actor.boobSize || actor.boobsNatural"> <li v-if="actor.bust || actor.waist || actor.hip">
<dfn class="bio-heading">Boobs</dfn> <dfn class="bio-heading">Measurements</dfn>
<span v-if="actor.boobSize">{{ actor.boobSize }}</span> <span>{{ actor.bust || '??' }}-{{ actor.waist || '??' }}-{{ actor.hip || '??' }}</span>
<span v-if="actor.boobsNatural !== null">{{ actor.boobsNatural ? 'Natural' : 'Enhanced' }}</span>
</li> </li>
</ul> </ul>

View File

@ -33,8 +33,10 @@ exports.up = knex => Promise.resolve()
table.string('residence_place'); table.string('residence_place');
table.string('boobs_size'); table.string('bust', 10);
table.boolean('boobs_natural'); table.integer('waist', 3);
table.integer('hip', 3);
table.boolean('natural_boobs');
table.integer('height', 3); table.integer('height', 3);
table.integer('weight', 3); table.integer('weight', 3);

View File

@ -37,8 +37,10 @@ async function curateActor(actor) {
: null, : null,
ethnicity: actor.ethnicity, ethnicity: actor.ethnicity,
height: actor.height, height: actor.height,
boobSize: actor.boobs_size, bust: actor.bust,
boobsNatural: actor.boobs_natural, waist: actor.waist,
hip: actor.hip,
naturalBoobs: actor.natural_boobs,
aliases: aliases.map(({ name }) => name), aliases: aliases.map(({ name }) => name),
slug: actor.slug, slug: actor.slug,
avatars, avatars,
@ -51,7 +53,6 @@ function curateActors(releases) {
function curateActorEntry(actor, scraped, scrapeSuccess) { function curateActorEntry(actor, scraped, scrapeSuccess) {
const curatedActor = { const curatedActor = {
id: actor.id,
name: actor.name name: actor.name
.split(' ') .split(' ')
.map(segment => `${segment.charAt(0).toUpperCase()}${segment.slice(1)}`) .map(segment => `${segment.charAt(0).toUpperCase()}${segment.slice(1)}`)
@ -65,22 +66,27 @@ function curateActorEntry(actor, scraped, scrapeSuccess) {
residence_country_alpha2: actor.residenceCountry, residence_country_alpha2: actor.residenceCountry,
birth_place: actor.birthPlace, birth_place: actor.birthPlace,
residence_place: actor.residencePlace, residence_place: actor.residencePlace,
boobs_size: actor.boobs && actor.boobs.size, bust: actor.bust,
boobs_natural: actor.boobs && actor.boobs.natural, waist: actor.waist,
hip: actor.hip,
natural_boobs: actor.naturalBoobs,
height: actor.height, height: actor.height,
weight: actor.weight, weight: actor.weight,
hair: actor.hair, hair: actor.hair,
eyes: actor.eyes, eyes: actor.eyes,
has_tattoos: actor.hasTattoos,
has_piercings: actor.hasPiercings,
tattoos: actor.tattoos, tattoos: actor.tattoos,
piercings: actor.piercings, piercings: actor.piercings,
}; };
if (actor.id) {
curatedActor.id = actor.id;
}
if (scraped) { if (scraped) {
return { curatedActor.scraped_at = new Date();
...curatedActor, curatedActor.scrape_success = scrapeSuccess;
scraped_at: new Date(),
scrape_success: scrapeSuccess,
};
} }
return curatedActor; return curatedActor;
@ -141,30 +147,32 @@ function mergeProfiles(profiles, actor) {
} }
return { return {
id: actor.id, id: actor ? actor.id : null,
name: actor.name, name: actor ? actor.name : profile.name,
description: prevProfile.description || profile.description,
gender: prevProfile.gender || profile.gender, gender: prevProfile.gender || profile.gender,
birthdate: prevProfile.birthdate || profile.birthdate, birthdate: Number.isNaN(prevProfile.birthdate) ? profile.birthdate : prevProfile.birthdate,
birthCountry: prevProfile.birthCountry || profile.birthCountry,
residenceCountry: prevProfile.residenceCountry || profile.residenceCountry, residenceCountry: prevProfile.residenceCountry || profile.residenceCountry,
birthPlace: prevProfile.birthPlace || profile.birthPlace, birthPlace: prevProfile.birthPlace || profile.birthPlace,
residencePlace: prevProfile.residencePlace || profile.residencePlace,
ethnicity: prevProfile.ethnicity || profile.ethnicity, ethnicity: prevProfile.ethnicity || profile.ethnicity,
boobs: profile.boobs bust: prevProfile.bust || profile.bust,
? { waist: prevProfile.waist || profile.waist,
size: prevProfile.boobs.size || profile.boobs.size, hip: prevProfile.hip || profile.hip,
natural: prevProfile.boobs.natural || profile.boobs.natural, naturalBoobs: prevProfile.naturalBoobs || profile.naturalBoobs,
}
: {},
height: prevProfile.height || profile.height, height: prevProfile.height || profile.height,
weight: prevProfile.weight || profile.weight, weight: prevProfile.weight || profile.weight,
hair: prevProfile.hair || profile.hair, hair: prevProfile.hair || profile.hair,
eyes: prevProfile.eyes || profile.eyes, eyes: prevProfile.eyes || profile.eyes,
hasPiercings: prevProfile.hasPiercings || profile.hasPiercings,
hasTattoos: prevProfile.hasTattoos || profile.hasTattoos,
piercings: prevProfile.piercings || profile.piercings, piercings: prevProfile.piercings || profile.piercings,
tattoos: prevProfile.tattoos || profile.tattoos, tattoos: prevProfile.tattoos || profile.tattoos,
social: prevProfile.social.concat(profile.social || []), social: prevProfile.social.concat(profile.social || []),
avatars: prevProfile.avatars.concat(profile.avatar || []), avatars: prevProfile.avatars.concat(profile.avatar || []),
}; };
}, { }, {
boobs: {},
social: [], social: [],
avatars: [], avatars: [],
...actor, ...actor,
@ -176,7 +184,11 @@ async function scrapeActors(actorNames) {
const actorSlug = actorName.toLowerCase().replace(/\s+/g, '-'); const actorSlug = actorName.toLowerCase().replace(/\s+/g, '-');
const actorEntry = await knex('actors').where({ slug: actorSlug }).first(); const actorEntry = await knex('actors').where({ slug: actorSlug }).first();
const profiles = await Promise.all(Object.values(scrapers.actors).map(scraper => scraper.fetchProfile(actorEntry ? actorEntry.name : actorName))); const profiles = await Promise.all(
Object.values(scrapers.actors)
.map(scraper => scraper.fetchProfile(actorEntry ? actorEntry.name : actorName)),
);
const profile = mergeProfiles(profiles, actorEntry); const profile = mergeProfiles(profiles, actorEntry);
if (profile === null) { if (profile === null) {
@ -203,7 +215,7 @@ async function scrapeActors(actorNames) {
await createActorMediaDirectory(profile, newActorEntry); await createActorMediaDirectory(profile, newActorEntry);
await storeAvatars(profile, newActorEntry); await storeAvatars(profile, newActorEntry);
}, { }, {
concurrency: 1, concurrency: 3,
}); });
} }

View File

@ -198,8 +198,10 @@ async function storeAvatars(profile, actor) {
const thumbnail = await getThumbnail(res.body); const thumbnail = await getThumbnail(res.body);
const extension = mime.getExtension(mimetype); const extension = mime.getExtension(mimetype);
const filepath = path.join('actors', actor.slug, `${index + 1}.${extension}`); const timestamp = new Date().getTime();
const thumbpath = path.join('actors', actor.slug, `${index + 1}_thumb.${extension}`);
const filepath = path.join('actors', actor.slug, `${timestamp + index}.${extension}`);
const thumbpath = path.join('actors', actor.slug, `${timestamp + index}_thumb.${extension}`);
const hash = getHash(res.body); const hash = getHash(res.body);
await Promise.all([ await Promise.all([

View File

@ -235,7 +235,7 @@ async function storeRelease(release) {
await storeReleaseAssets(release, releaseEntry.id); await storeReleaseAssets(release, releaseEntry.id);
console.log(`Stored release "${release.title}" (${releaseEntry.id}, ${release.site.name})`); console.log(`Stored release "${release.title}" (${releaseEntry.id}, ${release.site.name})`);
return null; return releaseEntry.id;
} }
async function storeReleases(releases) { async function storeReleases(releases) {

View File

@ -49,10 +49,8 @@ async function scrapeRelease(url, release, deep = false) {
if (!deep && argv.save) { if (!deep && argv.save) {
// don't store release when called by site scraper // don't store release when called by site scraper
const releaseId = await Promise.all([ const [releaseId] = await storeReleases([scene]);
storeReleases([scene]), await scrapeBasicActors();
scrapeBasicActors(),
]);
console.log(`http://${config.web.host}:${config.web.port}/scene/${releaseId}`); console.log(`http://${config.web.host}:${config.web.port}/scene/${releaseId}`);
} }

View File

@ -3,11 +3,20 @@
/* eslint-disable newline-per-chained-call */ /* eslint-disable newline-per-chained-call */
const bhttp = require('bhttp'); const bhttp = require('bhttp');
const cheerio = require('cheerio'); const cheerio = require('cheerio');
const { JSDOM } = require('jsdom');
const moment = require('moment'); const moment = require('moment');
const { heightToCm, lbsToKg } = require('../utils/convert');
const { fetchSites } = require('../sites'); const { fetchSites } = require('../sites');
const { matchTags } = require('../tags'); const { matchTags } = require('../tags');
const hairMap = {
Blonde: 'blonde',
Brunette: 'brown',
'Black Hair': 'black',
Redhead: 'red',
};
function scrape(html, site, upcoming) { function scrape(html, site, upcoming) {
const $ = cheerio.load(html, { normalizeWhitespace: true }); const $ = cheerio.load(html, { normalizeWhitespace: true });
const sceneElements = $('.release-card.scene').toArray(); const sceneElements = $('.release-card.scene').toArray();
@ -117,6 +126,50 @@ async function scrapeScene(html, url, site) {
}; };
} }
function scrapeActorSearch(html, url, actorName) {
const { document } = new JSDOM(html).window;
const actorLink = document.querySelector(`a[title="${actorName}"]`);
return actorLink;
}
function scrapeProfile(html, url, actorName) {
const { document } = new JSDOM(html).window;
const avatarEl = document.querySelector('.big-pic-model-container img');
const descriptionEl = document.querySelector('.model-profile-specs p');
const bioKeys = Array.from(document.querySelectorAll('.profile-spec-list label'), el => el.textContent.replace(/\n+|\s{2,}/g, '').trim());
const bioValues = Array.from(document.querySelectorAll('.profile-spec-list var'), el => el.textContent.replace(/\n+|\s{2,}/g, '').trim());
const bio = bioKeys.reduce((acc, key, index) => ({ ...acc, [key]: bioValues[index] }), {});
const profile = {
name: actorName,
};
if (bio.Ethnicity) profile.ethnicity = bio.Ethnicity;
if (bio.Measurements) [profile.bust, profile.waist, profile.hip] = bio.Measurements.split('-');
if (bio['Date of Birth'] && bio['Date of Birth'] !== 'Unknown') profile.birthdate = moment.utc(bio['Date of Birth'], 'MMMM DD, YYYY').toDate();
if (bio['Birth Location']) profile.birthPlace = bio['Birth Location'];
if (bio['Pussy Type']) profile.pussy = bio['Pussy Type'].split(',').slice(-1)[0].toLowerCase();
if (bio.Height) profile.height = heightToCm(bio.Height);
if (bio.Weight) profile.weight = lbsToKg(bio.Weight.match(/\d+/)[0]);
if (bio['Hair Color']) profile.hair = hairMap[bio['Hair Color']] || bio['Hair Color'].toLowerCase();
if (bio['Body Art']) {
profile.hasTattoo = !!bio['Body Art'].match('Tattoo');
profile.hasPiercing = !!bio['Body Art'].match('Piercing');
}
if (descriptionEl) profile.description = descriptionEl.textContent.trim();
if (avatarEl) profile.avatar = `https:${avatarEl.src}`;
profile.releases = Array.from(document.querySelectorAll('.release-card-container .scene-card-title a'), el => `https://brazzers.com${el.href}`);
return profile;
}
async function fetchLatest(site, page = 1) { async function fetchLatest(site, page = 1) {
const res = await bhttp.get(`${site.url}/page/${page}/`); const res = await bhttp.get(`${site.url}/page/${page}/`);
@ -135,8 +188,29 @@ async function fetchScene(url, site) {
return scrapeScene(res.body.toString(), url, site); return scrapeScene(res.body.toString(), url, site);
} }
async function fetchProfile(actorName) {
const searchUrl = 'https://brazzers.com/pornstars-search/';
const searchRes = await bhttp.get(searchUrl, {
headers: {
Cookie: `textSearch=${encodeURIComponent(actorName)};`,
},
});
const actorLink = scrapeActorSearch(searchRes.body.toString(), searchUrl, actorName);
if (actorLink) {
const url = `https://brazzers.com${actorLink}`;
const res = await bhttp.get(url);
return scrapeProfile(res.body.toString(), url, actorName);
}
return null;
}
module.exports = { module.exports = {
fetchLatest, fetchLatest,
fetchUpcoming, fetchProfile,
fetchScene, fetchScene,
fetchUpcoming,
}; };

View File

@ -23,9 +23,9 @@ async function scrapeProfileFrontpage(html, url, name) {
? moment.utc(birthdateString.slice(0, birthdateString.indexOf(' (')), 'MMMM D, YYYY').toDate() ? moment.utc(birthdateString.slice(0, birthdateString.indexOf(' (')), 'MMMM D, YYYY').toDate()
: null; : null;
const boobsSizeString = bio['Measurements:']; const measurementsString = bio['Measurements:'];
const boobsSize = boobsSizeString === '??-??-??' ? null : boobsSizeString; const [bust, waist, hip] = measurementsString.split('-').map(measurement => (measurement === '??' ? null : measurement));
const boobsNatural = bio['Fake Boobs:'] === 'No'; const naturalBoobs = bio['Fake Boobs:'] === 'No';
const residenceCountryName = bio['Country of Origin:']; const residenceCountryName = bio['Country of Origin:'];
const countryEntry = await knex('countries').where({ name: residenceCountryName }).first(); const countryEntry = await knex('countries').where({ name: residenceCountryName }).first();
@ -36,10 +36,12 @@ async function scrapeProfileFrontpage(html, url, name) {
const eyes = bio['Eye Color:'].toLowerCase(); const eyes = bio['Eye Color:'].toLowerCase();
const piercingsString = bio['Piercings:']; const piercingsString = bio['Piercings:'];
const piercings = piercingsString === 'None' ? null : piercingsString; const hasPiercings = !!(piercingsString !== undefined && piercingsString !== 'Unknown (add)' && piercingsString !== 'None');
const piercings = hasPiercings && piercingsString;
const tattoosString = bio['Tattoos:']; const tattoosString = bio['Tattoos:'];
const tattoos = tattoosString === 'Unknown (add)' || tattoosString === 'None' ? null : tattoosString; const hasTattoos = !!(tattoosString !== undefined && tattoosString !== 'Unknown (add)' && tattoosString !== 'None');
const tattoos = hasTattoos && tattoosString;
const social = Array.from(bioEl.querySelectorAll('.dashboard-socialmedia a'), el => el.href); const social = Array.from(bioEl.querySelectorAll('.dashboard-socialmedia a'), el => el.href);
@ -50,10 +52,10 @@ async function scrapeProfileFrontpage(html, url, name) {
birthdate, birthdate,
residenceCountry, residenceCountry,
birthPlace, birthPlace,
boobs: { naturalBoobs,
size: boobsSize, bust,
natural: boobsNatural, waist,
}, hip,
hair, hair,
eyes, eyes,
piercings, piercings,
@ -78,8 +80,8 @@ async function scrapeProfileBio(html, frontpageBio, url, name) {
? moment.utc(birthdateString.slice(0, birthdateString.indexOf(' (')), 'MMMM D, YYYY').toDate() ? moment.utc(birthdateString.slice(0, birthdateString.indexOf(' (')), 'MMMM D, YYYY').toDate()
: null; : null;
const boobsSizeString = bio['Measurements:']; const measurementsString = bio['Measurements:'];
const boobsSize = boobsSizeString === '??-??-??' ? null : boobsSizeString; const [bust, waist, hip] = measurementsString.split('-').map(measurement => (measurement === '??' ? null : measurement));
const boobsNatural = bio['Fake boobs:'] === 'No'; const boobsNatural = bio['Fake boobs:'] === 'No';
const ethnicity = bio['Ethnicity:']; const ethnicity = bio['Ethnicity:'];
@ -94,10 +96,12 @@ async function scrapeProfileBio(html, frontpageBio, url, name) {
const weight = Number(bio['Weight:'].match(/\d+/)[0]); const weight = Number(bio['Weight:'].match(/\d+/)[0]);
const piercingsString = bio['Piercings:']; const piercingsString = bio['Piercings:'];
const piercings = piercingsString === 'None' ? null : piercingsString; const hasPiercings = !!(piercingsString !== undefined && piercingsString !== 'Unknown (add)' && piercingsString !== 'None');
const piercings = hasPiercings && piercingsString;
const tattoosString = bio['Tattoos:']; const tattoosString = bio['Tattoos:'];
const tattoos = tattoosString === undefined || tattoosString === 'Unknown (add)' || tattoosString === 'None' ? null : tattoosString; const hasTattoos = !!(tattoosString !== undefined && tattoosString !== 'Unknown (add)' && tattoosString !== 'None');
const tattoos = hasTattoos && tattoosString;
const social = Array.from(bioEl.querySelectorAll('#socialmedia a'), el => el.href); const social = Array.from(bioEl.querySelectorAll('#socialmedia a'), el => el.href);
@ -109,14 +113,16 @@ async function scrapeProfileBio(html, frontpageBio, url, name) {
residenceCountry, residenceCountry,
birthPlace, birthPlace,
ethnicity, ethnicity,
boobs: { naturalBoobs: boobsNatural,
size: boobsSize, bust,
natural: boobsNatural, waist,
}, hip,
height, height,
weight, weight,
hair, hair,
eyes, eyes,
hasPiercings,
hasTattoos,
piercings, piercings,
tattoos, tattoos,
social, social,

View File

@ -3,8 +3,10 @@
const Promise = require('bluebird'); const Promise = require('bluebird');
const bhttp = require('bhttp'); const bhttp = require('bhttp');
const cheerio = require('cheerio'); const cheerio = require('cheerio');
const { JSDOM } = require('jsdom');
const moment = require('moment'); const moment = require('moment');
const { heightToCm } = require('../utils/convert');
const { matchTags } = require('../tags'); const { matchTags } = require('../tags');
const pluckPhotos = require('../utils/pluck-photos'); const pluckPhotos = require('../utils/pluck-photos');
@ -190,6 +192,37 @@ async function scrapeScene(html, url, site) {
}; };
} }
function scrapeProfile(html, url, actorName) {
const { document } = new JSDOM(html).window;
const bio = document.querySelector('.model_bio').textContent;
const avatarEl = document.querySelector('.model_bio_pic');
const profile = {
name: actorName,
};
const heightString = bio.match(/\d+ feet \d+ inches/);
const ageString = bio.match(/Age:\s*\d{2}/);
const measurementsString = bio.match(/\w+-\d+-\d+/);
if (heightString) profile.height = heightToCm(heightString[0]);
if (ageString) profile.age = Number(ageString[0].match(/\d{2}/)[0]);
if (measurementsString) [profile.bust, profile.waist, profile.hip] = measurementsString[0].split('-');
if (avatarEl) {
const src1 = avatarEl.innerHTML.slice(avatarEl.innerHTML.indexOf('src0_1x') + 9, avatarEl.innerHTML.indexOf('1x.jpg') + 6);
const src2 = avatarEl.innerHTML.slice(avatarEl.innerHTML.indexOf('src0_2x') + 9, avatarEl.innerHTML.indexOf('2x.jpg') + 6);
const src3 = avatarEl.innerHTML.slice(avatarEl.innerHTML.indexOf('src0_3x') + 9, avatarEl.innerHTML.indexOf('3x.jpg') + 6);
profile.avatar = src3 || src2 || src1;
}
profile.releases = Array.from(document.querySelectorAll('.category_listing_block .update_details > a:first-child'), el => el.href);
return profile;
}
async function fetchLatest(site, page = 1) { async function fetchLatest(site, page = 1) {
const res = await bhttp.get(`${site.url}/trial/categories/movies_${page}_d.html`); const res = await bhttp.get(`${site.url}/trial/categories/movies_${page}_d.html`);
@ -208,8 +241,22 @@ async function fetchScene(url, site) {
return scrapeScene(res.body.toString(), url, site); return scrapeScene(res.body.toString(), url, site);
} }
async function fetchProfile(actorName) {
const actorSlug = actorName.toLowerCase().replace(/\s+/g, '-');
const url = `https://julesjordan.com/trial/models/${actorSlug}.html`;
const res = await bhttp.get(url);
if (res.statusCode === 200) {
return scrapeProfile(res.body.toString(), url, actorName);
}
return null;
}
module.exports = { module.exports = {
fetchLatest, fetchLatest,
fetchProfile,
fetchUpcoming, fetchUpcoming,
fetchScene, fetchScene,
}; };

View File

@ -26,7 +26,6 @@ async function scrapeProfile(html, _url, actorName) {
const profile = { const profile = {
name: actorName, name: actorName,
boobs: {},
}; };
const descriptionString = document.querySelector('div[itemprop="description"]'); const descriptionString = document.querySelector('div[itemprop="description"]');
@ -60,14 +59,14 @@ async function scrapeProfile(html, _url, actorName) {
profile.residenceCountry = residenceCountryEntry ? residenceCountryEntry.alpha2 : null; profile.residenceCountry = residenceCountryEntry ? residenceCountryEntry.alpha2 : null;
} }
if (bio.Measurements && bio.Measurements !== '--') profile.boobs.size = bio.Measurements; if (bio.Measurements && bio.Measurements !== '--') [profile.bust, profile.waist, profile.hip] = bio.Measurements.split('-');
if (bio['Fake Boobs']) profile.boobs.natural = bio['Fake Boobs'] === 'No'; if (bio['Fake Boobs']) profile.naturalBoobs = bio['Fake Boobs'] === 'No';
if (bio.Height) profile.height = Number(bio.Height.match(/\(\d+/)[0].slice(1)); if (bio.Height) profile.height = Number(bio.Height.match(/\(\d+/)[0].slice(1));
if (bio.Weight) profile.weight = Number(bio.Weight.match(/\(\d+/)[0].slice(1)); if (bio.Weight) profile.weight = Number(bio.Weight.match(/\(\d+/)[0].slice(1));
if (bio['Hair Color']) profile.hair = hairMap[bio['Hair Color']] || bio['Hair Color'].toLowerCase(); if (bio['Hair Color']) profile.hair = hairMap[bio['Hair Color']] || bio['Hair Color'].toLowerCase();
if (bio.Piercings) profile.piercings = bio.Piercings === 'Yes'; if (bio.Piercings) profile.hasPiercings = bio.Piercings === 'Yes';
if (bio.Tattoos) profile.tattoos = bio.tattoos === 'Yes'; if (bio.Tattoos) profile.hasTattoos = bio.hasTattoos === 'Yes';
if (avatarEl) profile.avatar = avatarEl.src; if (avatarEl) profile.avatar = avatarEl.src;
profile.social = Array.from(document.querySelectorAll('.socialList a'), el => el.href).filter(link => link !== 'https://www.twitter.com/'); // PH links to Twitter itself for some reason profile.social = Array.from(document.querySelectorAll('.socialList a'), el => el.href).filter(link => link !== 'https://www.twitter.com/'); // PH links to Twitter itself for some reason

View File

@ -4,11 +4,9 @@
const twentyonesextury = require('./21sextury'); const twentyonesextury = require('./21sextury');
const bangbros = require('./bangbros'); const bangbros = require('./bangbros');
const blowpass = require('./blowpass'); const blowpass = require('./blowpass');
const brazzers = require('./brazzers');
const ddfnetwork = require('./ddfnetwork'); const ddfnetwork = require('./ddfnetwork');
const dogfart = require('./dogfart'); const dogfart = require('./dogfart');
const evilangel = require('./evilangel'); const evilangel = require('./evilangel');
const julesjordan = require('./julesjordan');
const kink = require('./kink'); const kink = require('./kink');
const mikeadriano = require('./mikeadriano'); const mikeadriano = require('./mikeadriano');
const mofos = require('./mofos'); const mofos = require('./mofos');
@ -20,6 +18,8 @@ const vixen = require('./vixen');
const xempire = require('./xempire'); const xempire = require('./xempire');
// releases and profiles // releases and profiles
const brazzers = require('./brazzers');
const julesjordan = require('./julesjordan');
const legalporno = require('./legalporno'); const legalporno = require('./legalporno');
// profiles // profiles
@ -49,7 +49,9 @@ module.exports = {
xempire, xempire,
}, },
actors: { actors: {
brazzers,
freeones, freeones,
julesjordan,
legalporno, legalporno,
pornhub, pornhub,
}, },

23
src/utils/convert.js Normal file
View File

@ -0,0 +1,23 @@
'use strict';
function feetInchesToCm(feet, inches) {
return Math.round((Number(feet) * 30.48) + (Number(inches) * 2.54));
}
function heightToCm(height) {
const [feet, inches] = height.match(/\d+/g);
return feetInchesToCm(feet, inches);
}
function lbsToKg(lbs) {
const pounds = lbs.toString().match(/\d+/)[0];
return Math.round(Number(pounds) * 0.453592);
}
module.exports = {
feetInchesToCm,
heightToCm,
lbsToKg,
};