Added description property to LegalPorno scraper (rarely used, see GIO337).

This commit is contained in:
2020-01-29 03:19:38 +01:00
parent 769e7bb37e
commit 8b840f52d1
9 changed files with 5 additions and 2 deletions

View File

@@ -82,11 +82,12 @@ async function scrapeScene(html, url, site, useGallery) {
const date = moment.utc($('span[title="Release date"] a').text(), 'YYYY-MM-DD').toDate();
const [actorsElement, tagsElement] = $('.scene-description__row').toArray();
const [actorsElement, tagsElement, descriptionElement] = $('.scene-description__row').toArray();
const actors = $(actorsElement)
.find('a[href*="com/model"]')
.map((actorIndex, actorElement) => $(actorElement).text()).toArray();
const description = $('meta[name="description"]')?.attr('content')?.trim() || (descriptionElement && $(descriptionElement).find('dd').text().trim());
const duration = moment.duration($('span[title="Runtime"]').text().trim()).asSeconds();
const posterStyle = $('#player').attr('style');
@@ -107,6 +108,7 @@ async function scrapeScene(html, url, site, useGallery) {
shootId,
entryId,
title,
description,
date,
actors,
duration,