Broadened Love Her Films profile selectors.
This commit is contained in:
@@ -125,12 +125,12 @@ async function fetchScene(sceneUrl, entity, _baseRelease, { parameters }) {
|
|||||||
function scrapeProfile({ query }, url) {
|
function scrapeProfile({ query }, url) {
|
||||||
const profile = { url };
|
const profile = { url };
|
||||||
|
|
||||||
const bio = Object.fromEntries(query.all('ul[class*="HeroModel_list"] li').map((bioEl) => [
|
const bio = Object.fromEntries(query.all('ul[class*=HeroModel][class*="__list"] li').map((bioEl) => [
|
||||||
slugify(unprint.query.content(bioEl, 'p:first-child'), '_'),
|
slugify(unprint.query.content(bioEl, 'p:first-child'), '_'),
|
||||||
unprint.query.content(bioEl, 'p:last-child'),
|
unprint.query.content(bioEl, 'p:last-child'),
|
||||||
]));
|
]));
|
||||||
|
|
||||||
profile.description = query.content('p[class*="HeroModel_text"]');
|
profile.description = query.content('p[class*=HeroModel][class*="__text"]');
|
||||||
profile.birthPlace = bio.place_of_birth;
|
profile.birthPlace = bio.place_of_birth;
|
||||||
|
|
||||||
profile.dateOfBirth = unprint.extractDate(bio.date_of_birth, ['MMMM DD, YYYY', 'MM/DD/YYYY']);
|
profile.dateOfBirth = unprint.extractDate(bio.date_of_birth, ['MMMM DD, YYYY', 'MM/DD/YYYY']);
|
||||||
@@ -163,7 +163,7 @@ function scrapeProfile({ query }, url) {
|
|||||||
profile.piercings = profile.hasPiercings ? bio.piercings : null;
|
profile.piercings = profile.hasPiercings ? bio.piercings : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
profile.avatar = query.sourceSet('picture[class*="modelImage"] img');
|
profile.avatar = query.sourceSet('picture[class*="__modelImage"] img');
|
||||||
|
|
||||||
return profile;
|
return profile;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user