Added description property to recent scrapers (apparently forgotten). Reconfigured eslint for scrapers.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable */
|
||||
const bhttp = require('bhttp');
|
||||
const cheerio = require('cheerio');
|
||||
const moment = require('moment');
|
||||
@@ -8,6 +7,7 @@ const moment = require('moment');
|
||||
const knex = require('../knex');
|
||||
const { matchTags } = require('../tags');
|
||||
|
||||
/* eslint-disable newline-per-chained-call */
|
||||
function scrapeLatest(html, site) {
|
||||
const $ = cheerio.load(html, { normalizeWhitespace: true });
|
||||
const sceneElements = $('.card.m-1').toArray();
|
||||
@@ -62,6 +62,7 @@ async function scrapeScene(html, url, site) {
|
||||
url: channelSite ? `${channelSite.url}${new URL(url).pathname}` : url,
|
||||
entryId,
|
||||
title,
|
||||
description,
|
||||
actors,
|
||||
date,
|
||||
duration,
|
||||
|
||||
Reference in New Issue
Block a user