Fixed New Sensations classic scraper breaking on missing actors.

This commit is contained in:
DebaucheryLibrarian 2023-06-09 00:33:40 +02:00
parent bcd3c08faa
commit c4e4f649f5
5 changed files with 14 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -404,7 +404,7 @@ const tags = [
{ {
name: 'triple vaginal', name: 'triple vaginal',
slug: 'tvp', slug: 'tvp',
description: 'Getting fucked in the pussy by *three* cocks at the same time.', description: 'Getting your pussy fucked by *three* cocks at the same time.',
group: 'penetration', group: 'penetration',
}, },
{ {
@ -1589,6 +1589,11 @@ const aliases = [
for: 'tvp', for: 'tvp',
secondary: true, secondary: true,
}, },
{
name: 'tvp',
for: 'tvp',
secondary: true,
},
{ {
name: 'double vag', name: 'double vag',
for: 'dvp', for: 'dvp',
@ -2050,6 +2055,10 @@ const aliases = [
name: 'tap', name: 'tap',
for: 'tap', for: 'tap',
}, },
{
name: 'triple vaginal penetration',
for: 'tvp',
},
{ {
name: 'tease', name: 'tease',
for: 'teasing', for: 'teasing',

View File

@ -1054,6 +1054,7 @@ const tagMedia = [
['triple-penetration', 'lucky_bee_analvids', 'Lucky Bee', 'analvids'], ['triple-penetration', 'lucky_bee_analvids', 'Lucky Bee', 'analvids'],
['triple-penetration', 'angela_white_julesjordan', 'Angela White in "Her Biggest Gangbang Ever"', 'julesjordan'], ['triple-penetration', 'angela_white_julesjordan', 'Angela White in "Her Biggest Gangbang Ever"', 'julesjordan'],
['triple-penetration', 'ria_sunn_legalporno', 'Ria Sunn in SZ2082', 'analvids'], ['triple-penetration', 'ria_sunn_legalporno', 'Ria Sunn in SZ2082', 'analvids'],
['tvp', 'lucky_bee_legalporno', 'Lucky Bee', 'analvids'],
['tvp', 'september_reign_wefuckblackgirls', 'September Reign in "Second Appearance"', 'wefuckblackgirls'], ['tvp', 'september_reign_wefuckblackgirls', 'September Reign in "Second Appearance"', 'wefuckblackgirls'],
['trainbang', 'poster', 'Kali Roses in "Passing Me Around"', 'blacked'], ['trainbang', 'poster', 'Kali Roses in "Passing Me Around"', 'blacked'],
['trainbang', 'gina_gerson_assholefever', 'Gina Gerson in "Oppa Gangbang Style"', 'assholefever'], ['trainbang', 'gina_gerson_assholefever', 'Gina Gerson in "Oppa Gangbang Style"', 'assholefever'],

View File

@ -39,11 +39,11 @@ function scrapeLatestClassic(scenes) {
const actors = query.contents('.update_models a'); const actors = query.contents('.update_models a');
release.actors = actors.length === 0 release.actors = actors.length === 0
? query.content('.update_models').split(/,\s*/) ? query.content('.update_models')?.split(/,\s*/) // not all entries have models listed
: actors; : actors;
// native videothumb entry ID does not occur on scene page, date is not available on all sites // native videothumb entry ID does not occur on scene page, date is not available on all sites
release.entryId = slugify([...release.actors.sort(), release.title]); release.entryId = slugify([...(release.actors?.sort() || []), release.title]);
const photoCount = query.number('.update_thumb', { attribute: 'cnt' }); const photoCount = query.number('.update_thumb', { attribute: 'cnt' });
@ -59,7 +59,7 @@ function scrapeLatestClassic(scenes) {
function scrapeSceneBlock({ query }) { function scrapeSceneBlock({ query }) {
const release = {}; const release = {};
release.title = query.content('.indScene h2'); release.title = query.content('.indScene h2, .indScene h1');
release.description = query.content('.description'); release.description = query.content('.description');
release.date = query.date('.sceneDateP span', 'MM/DD/YYYY'); release.date = query.date('.sceneDateP span', 'MM/DD/YYYY');