Improved Aziani profile scraper for Cosplayground, allowing image type override, added profile test for Cosplayground.

This commit is contained in:
DebaucheryLibrarian
2026-07-24 16:57:15 +02:00
parent 327f255c9d
commit 8f0609ade2
3 changed files with 12 additions and 5 deletions

View File

@@ -13547,6 +13547,7 @@ const sites = [
videos: '/videos', videos: '/videos',
scenePath: '/videos', scenePath: '/videos',
modelPath: '/models', modelPath: '/models',
imageType: 'photos',
}, },
}, },
// TEEN CORE CLUB // TEEN CORE CLUB

View File

@@ -45,7 +45,7 @@ function scrapeScene(data, channel, parameters) {
.map((key) => unprint.prefixUrl(`${poster[key][0].fileuri}?${poster[key][0].signature}`, parameters.cdn)); .map((key) => unprint.prefixUrl(`${poster[key][0].fileuri}?${poster[key][0].signature}`, parameters.cdn));
} }
release.caps = data.content release[parameters.imageType || 'caps'] = data.content
?.filter((item) => item.content_type === 'image' && item.content?.[0]) ?.filter((item) => item.content_type === 'image' && item.content?.[0])
.map((item) => [ .map((item) => [
item.content[0], item.content[0],
@@ -187,7 +187,10 @@ function scrapeProfile(data, entity, parameters) {
profile.gender = bio.gender?.toLowerCase(); profile.gender = bio.gender?.toLowerCase();
profile.age = bio.age; profile.age = bio.age;
profile.dateOfBirth = unprint.extractDate(`${bio.born} 0`, 'MMMM Do YYYY', { match: /\w+ \d+\w{2} \d{1,4}/ }); profile.dateOfBirth = unprint.extractDate(`${bio.born} 0`, 'MMMM Do YYYY', { match: /\w+ \d+\w{2} \d{1,4}/ })
|| unprint.extractDate(bio.date_of_birth, 'yyyy-MM-dd');
profile.birthPlace = bio.birthplace;
profile.ethnicity = bio.ethnicity; profile.ethnicity = bio.ethnicity;
profile.measurements = bio.measurements; profile.measurements = bio.measurements;
@@ -210,16 +213,18 @@ function scrapeProfile(data, entity, parameters) {
}; };
} }
profile.socials = [bio.onlyfans, bio.instagram].filter(Boolean);
return profile; return profile;
} }
async function fetchProfile({ name, url }, { entity, parameters }) { async function fetchProfile({ name, url }, { entity, parameters }) {
if (!url) { if (!url && !parameters.entryIdSlug) {
// no easy search option // no easy search option and numeric ID is non-derivable
return null; return null;
} }
const actorId = new URL(url).pathname.match(/models?\/(\d+)/)?.[1]; const actorId = url && new URL(url).pathname.match(/models?\/(\d+)/)?.[1];
if (!actorId && !parameters.entryIdSlug) { if (!actorId && !parameters.entryIdSlug) {
return null; return null;

View File

@@ -266,6 +266,7 @@ const actors = [
{ entity: 'wakeupnfuck', name: 'Abby Lee Brazil', fields: ['avatar', 'nationality'] }, { entity: 'wakeupnfuck', name: 'Abby Lee Brazil', fields: ['avatar', 'nationality'] },
{ entity: 'darkkotv', name: 'Aidra Fox', fields: ['avatar', 'description', 'dateOfBirth', 'birthPlace', 'ethnicity', 'height', 'weight', 'measurements', 'naturalBoobs', 'hasTattoos', 'hasPiercings'] }, { entity: 'darkkotv', name: 'Aidra Fox', fields: ['avatar', 'description', 'dateOfBirth', 'birthPlace', 'ethnicity', 'height', 'weight', 'measurements', 'naturalBoobs', 'hasTattoos', 'hasPiercings'] },
{ entity: 'jaxslayher', name: 'Eliza Ibarra', fields: ['avatar', 'description', 'eyes', 'height', 'weight', 'birthPlace', 'measurements', 'hairColor'] }, { entity: 'jaxslayher', name: 'Eliza Ibarra', fields: ['avatar', 'description', 'eyes', 'height', 'weight', 'birthPlace', 'measurements', 'hairColor'] },
{ entity: 'cosplayground', name: 'Anna Claire Clouds', url: 'https://cosplayground.com/models/anna-claire-clouds?models=Anna%20Claire%20Clouds', fields: ['avatar', 'description', 'dateOfBirth', 'birthPlace', 'height', 'measurements', 'hairColor', 'ethnicity'] },
]; ];
const actorScrapers = scrapers.actors; const actorScrapers = scrapers.actors;