From 7dd243283752be442af0e092c26c22c4021dccf0 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Wed, 10 Apr 2019 03:57:34 +0200 Subject: [PATCH] Changed title source for 21Sextury scene fetch, --- src/scrapers/21sextury.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrapers/21sextury.js b/src/scrapers/21sextury.js index c6b7030b..4fbd389b 100644 --- a/src/scrapers/21sextury.js +++ b/src/scrapers/21sextury.js @@ -62,7 +62,7 @@ async function scrapeScene(html, url, site) { const data = JSON.parse(json)[0]; const entryId = new URL(url).pathname.split('/').slice(-1)[0]; - const title = data.name; + const title = data.isPartOf ? data.isPartOf.name : data.name; const dataDate = moment.utc(data.dateCreated, 'YYYY-MM-DD'); const date = dataDate.isValid()