Moved Killergram to Aylo. Added profile tests.
This commit is contained in:
@@ -106,7 +106,7 @@ function scrapeProfile({ query }, url, entity) {
|
||||
|
||||
const avatarSources = query.srcset('.girl-details-photo-content picture source', 'srcset') || [query.img('.girl-details-photo')];
|
||||
|
||||
profile.avatar = getPoster(avatarSources);
|
||||
profile.avatar = getPoster(avatarSources).slice(0, 3); // returns a metric ton of links, if first few don't work the rest presumably won't either
|
||||
profile.social = query.urls('.girl-details-social-media-list a');
|
||||
|
||||
profile.scenes = scrapeAll(qu.initAll(query.all('.video-card')), entity);
|
||||
@@ -127,7 +127,7 @@ async function fetchLatest(channel, page) {
|
||||
}
|
||||
|
||||
async function fetchProfile(baseActor, { entity }) {
|
||||
const url = `${entity.url}/${entity.parameters?.actor || 'pornstar'}/${slugify(baseActor.name, '')}/`;
|
||||
const url = `${entity.url}/${entity.parameters?.actor || 'pornstar'}/${slugify(baseActor.name, '-')}/`;
|
||||
const res = await qu.get(url);
|
||||
|
||||
if (res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user