Added description property to LegalPorno scraper (rarely used, see GIO337).
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 585 KiB |
After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 536 KiB |
After Width: | Height: | Size: 92 KiB |
|
@ -1,7 +1,7 @@
|
|||
const upsert = require('../src/utils/upsert');
|
||||
|
||||
const tagPosters = Object.entries({
|
||||
'anal-creampie': ['poster'],
|
||||
'anal-creampie': [0, 'Gina Valentina and Jane Wilde in "A Very Special Anniversary" for Tushy'],
|
||||
'ass-to-mouth': ['poster', 'Alysa Gap and Logan in "Anal Buffet 4" for Evil Angel'],
|
||||
'da-tp': [0, 'Natasha Teen in LegalPorno SZ2164'],
|
||||
'double-anal': [2, 'Lana Rhoades in "Gangbang Me 3" for HardX'],
|
||||
|
@ -13,6 +13,7 @@ const tagPosters = Object.entries({
|
|||
airtight: [1, 'Jynx Maze in "Pump My Ass Full of Cum 3" for Jules Jordan'],
|
||||
anal: ['poster', 'Jynx Maze in "Anal Buffet 6" for Evil Angel'],
|
||||
asian: ['poster', 'Vina Sky in "Young and Glamorous 10" for Jules Jordan'],
|
||||
blowjob: [0, 'Adriana Chechik in "The Dinner Party" for Real Wife Stories (Brazzers)'],
|
||||
blowbang: ['poster'],
|
||||
bukkake: ['poster'],
|
||||
caucasian: ['poster'],
|
||||
|
|
|
@ -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,
|
||||
|
|