forked from DebaucheryLibrarian/traxxx
Ignoring placeholder avatar in Jay Rock scraper.
This commit is contained in:
parent
e698146d94
commit
2063d66550
|
@ -35,12 +35,12 @@ function scrapeScene({ query, html }, url, channel) {
|
||||||
.map((actorEl) => {
|
.map((actorEl) => {
|
||||||
const actorUrl = query.url(actorEl, 'a', 'href', { origin: channel.url });
|
const actorUrl = query.url(actorEl, 'a', 'href', { origin: channel.url });
|
||||||
const entryId = new URL(url).pathname.match(/\/(\d+)/)?.[1];
|
const entryId = new URL(url).pathname.match(/\/(\d+)/)?.[1];
|
||||||
const avatar = query.img(actorEl, 'img', 'data-bgsrc');
|
const avatar = query.img(actorEl, 'img:not([data-bgsrc*="not-available"])', 'data-bgsrc');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: query.cnt(actorEl, '.video-performer-name'),
|
name: query.cnt(actorEl, '.video-performer-name'),
|
||||||
gender: 'female',
|
gender: 'female',
|
||||||
avatar: [
|
avatar: avatar && [
|
||||||
avatar.replace(/\/actor\/(\d+)/, '/actor/500'),
|
avatar.replace(/\/actor\/(\d+)/, '/actor/500'),
|
||||||
avatar,
|
avatar,
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue