Changed title source for 21Sextury scene fetch,

This commit is contained in:
ThePendulum 2019-04-10 03:57:34 +02:00
parent 3ac4be54db
commit 7dd2432837
1 changed files with 1 additions and 1 deletions

View File

@ -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()