From c4e4f649f56b64283583227c277f66e89120b307 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Fri, 9 Jun 2023 00:33:40 +0200 Subject: [PATCH] Fixed New Sensations classic scraper breaking on missing actors. --- .../tvp/lazy/september_reign_wefuckblackgirls.jpeg | Bin .../thumbs/september_reign_wefuckblackgirls.jpeg | Bin seeds/00_tags.js | 11 ++++++++++- seeds/04_media.js | 1 + src/scrapers/newsensations.js | 6 +++--- 5 files changed, 14 insertions(+), 4 deletions(-) mode change 100755 => 100644 public/img/tags/tvp/lazy/september_reign_wefuckblackgirls.jpeg mode change 100755 => 100644 public/img/tags/tvp/thumbs/september_reign_wefuckblackgirls.jpeg diff --git a/public/img/tags/tvp/lazy/september_reign_wefuckblackgirls.jpeg b/public/img/tags/tvp/lazy/september_reign_wefuckblackgirls.jpeg old mode 100755 new mode 100644 diff --git a/public/img/tags/tvp/thumbs/september_reign_wefuckblackgirls.jpeg b/public/img/tags/tvp/thumbs/september_reign_wefuckblackgirls.jpeg old mode 100755 new mode 100644 diff --git a/seeds/00_tags.js b/seeds/00_tags.js index 901b6b54..331067ca 100755 --- a/seeds/00_tags.js +++ b/seeds/00_tags.js @@ -404,7 +404,7 @@ const tags = [ { name: 'triple vaginal', 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', }, { @@ -1589,6 +1589,11 @@ const aliases = [ for: 'tvp', secondary: true, }, + { + name: 'tvp', + for: 'tvp', + secondary: true, + }, { name: 'double vag', for: 'dvp', @@ -2050,6 +2055,10 @@ const aliases = [ name: 'tap', for: 'tap', }, + { + name: 'triple vaginal penetration', + for: 'tvp', + }, { name: 'tease', for: 'teasing', diff --git a/seeds/04_media.js b/seeds/04_media.js index bab84617..62c04f44 100755 --- a/seeds/04_media.js +++ b/seeds/04_media.js @@ -1054,6 +1054,7 @@ const tagMedia = [ ['triple-penetration', 'lucky_bee_analvids', 'Lucky Bee', 'analvids'], ['triple-penetration', 'angela_white_julesjordan', 'Angela White in "Her Biggest Gangbang Ever"', 'julesjordan'], ['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'], ['trainbang', 'poster', 'Kali Roses in "Passing Me Around"', 'blacked'], ['trainbang', 'gina_gerson_assholefever', 'Gina Gerson in "Oppa Gangbang Style"', 'assholefever'], diff --git a/src/scrapers/newsensations.js b/src/scrapers/newsensations.js index f57de429..f61ba31c 100755 --- a/src/scrapers/newsensations.js +++ b/src/scrapers/newsensations.js @@ -39,11 +39,11 @@ function scrapeLatestClassic(scenes) { const actors = query.contents('.update_models a'); release.actors = actors.length === 0 - ? query.content('.update_models').split(/,\s*/) + ? query.content('.update_models')?.split(/,\s*/) // not all entries have models listed : actors; // 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' }); @@ -59,7 +59,7 @@ function scrapeLatestClassic(scenes) { function scrapeSceneBlock({ query }) { const release = {}; - release.title = query.content('.indScene h2'); + release.title = query.content('.indScene h2, .indScene h1'); release.description = query.content('.description'); release.date = query.date('.sceneDateP span', 'MM/DD/YYYY');