forked from DebaucheryLibrarian/traxxx
Changed title source for 21Sextury scene fetch,
This commit is contained in:
parent
3ac4be54db
commit
7dd2432837
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue