Removed stray slice from Gamma scraper.
This commit is contained in:
@@ -105,9 +105,9 @@ function scrapeScene({ query, window }, { url }) {
|
||||
function scrapeProfile({ query }) {
|
||||
const profile = {};
|
||||
|
||||
const bioKeys = query.contents('.pornstar-detail__params--top strong, .actor-detail__param-name');
|
||||
const bioValues = query.exists('.actor-detail__param-value')
|
||||
? query.contents('.actor-detail__param-value')
|
||||
const bioKeys = query.contents('.pornstar-detail__params--top strong, .actor-detail__param-name, td.pornstar-detail__info--title');
|
||||
const bioValues = query.exists('.actor-detail__param-value, .pornstar-detail__info--title')
|
||||
? query.contents('.actor-detail__param-value, .pornstar-detail__info--title + td')
|
||||
: query.text('.pornstar-detail__params--top', { join: false })?.map((text) => text.split('•')[0].replace(':', '').trim());
|
||||
|
||||
const bio = Object.fromEntries(bioKeys.map((key, index) => [slugify(key, '_'), bioValues[index]]));
|
||||
|
||||
Reference in New Issue
Block a user