Ignoring placeholder avatar in Jay Rock scraper.

This commit is contained in:
DebaucheryLibrarian 2020-11-10 22:44:15 +01:00
parent e698146d94
commit 2063d66550
1 changed files with 2 additions and 2 deletions

View File

@ -35,12 +35,12 @@ function scrapeScene({ query, html }, url, channel) {
.map((actorEl) => {
const actorUrl = query.url(actorEl, 'a', 'href', { origin: channel.url });
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 {
name: query.cnt(actorEl, '.video-performer-name'),
gender: 'female',
avatar: [
avatar: avatar && [
avatar.replace(/\/actor\/(\d+)/, '/actor/500'),
avatar,
],