forked from DebaucheryLibrarian/traxxx
Added WP boob filter to actors page.
This commit is contained in:
@@ -163,12 +163,13 @@ function toBaseActors(actorsOrNames, release) {
|
||||
// const entity = getRecursiveParent(release?.entity);
|
||||
const entity = (release?.entity?.indepdendent && release?.entity)
|
||||
|| release?.entity?.parent
|
||||
|| release?.entity;
|
||||
|| release?.entity
|
||||
|| null;
|
||||
|
||||
const baseActor = {
|
||||
name,
|
||||
slug,
|
||||
entryId: entity && (entryId || actorOrName.entryId || null),
|
||||
entryId: (entity && (entryId || actorOrName.entryId)) || null,
|
||||
entity,
|
||||
hasProfile: !!actorOrName.name, // actor contains profile information
|
||||
};
|
||||
@@ -533,7 +534,6 @@ async function interpolateProfiles(actorIdsOrNames) {
|
||||
'penis_length',
|
||||
'penis_girth',
|
||||
'circumcised',
|
||||
'natural_boobs',
|
||||
'hair_color',
|
||||
'eyes',
|
||||
'has_tattoos',
|
||||
@@ -554,6 +554,8 @@ async function interpolateProfiles(actorIdsOrNames) {
|
||||
profile.date_of_death = getMostFrequentDate(valuesByProperty.date_of_death);
|
||||
profile.age = getHighest(valuesByProperty.age);
|
||||
|
||||
profile.natural_boobs = profile.gender === 'male' ? null : getMostFrequent(valuesByProperty.natural_boobs);
|
||||
|
||||
// ensure most frequent country, city and state match up
|
||||
profile.birth_country_alpha2 = getMostFrequent(valuesByProperty.origin.map(location => location.country));
|
||||
const remainingOriginCountries = valuesByProperty.origin.filter(location => location.country === profile.birth_country_alpha2);
|
||||
@@ -758,6 +760,8 @@ async function scrapeActors(argNames) {
|
||||
const actorNames = await getActorNames(argNames);
|
||||
const baseActors = toBaseActors(actorNames);
|
||||
|
||||
console.log(baseActors);
|
||||
|
||||
logger.info(`Scraping profiles for ${actorNames.length} actors`);
|
||||
|
||||
const sources = argv.profileSources || config.profiles || Object.keys(scrapers.actors);
|
||||
|
||||
Reference in New Issue
Block a user