Added description property to recent scrapers (apparently forgotten). Reconfigured eslint for scrapers.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable */
|
||||
/* eslint-disable newline-per-chained-call */
|
||||
const bhttp = require('bhttp');
|
||||
const cheerio = require('cheerio');
|
||||
const moment = require('moment');
|
||||
@@ -15,7 +15,7 @@ function scrapeLatest(html, site) {
|
||||
|
||||
return scenes.map((scene) => {
|
||||
const shootId = String(scene.newId);
|
||||
const title = scene.title;
|
||||
const { title } = scene;
|
||||
const url = `${site.url}${scene.targetUrl}`;
|
||||
const date = moment.utc(scene.releaseDateFormatted, 'MMMM DD, YYYY').toDate();
|
||||
const actors = scene.models;
|
||||
@@ -45,7 +45,7 @@ async function scrapeScene(html, url, site) {
|
||||
const scene = data.page.data[`${pathname}${search}`].data.video;
|
||||
|
||||
const shootId = String(scene.newId);
|
||||
const title = scene.title;
|
||||
const { title } = scene;
|
||||
const date = new Date(scene.releaseDate);
|
||||
const actors = scene.models;
|
||||
const stars = scene.totalRateVal;
|
||||
|
||||
Reference in New Issue
Block a user