Scrolling content container instead of whole page. Improved title source in XEmpire scraper. Fixed scene page breaking when no photos are available.

This commit is contained in:
2019-09-25 01:38:06 +02:00
parent 52aff6d20c
commit 05263a97ea
5 changed files with 26 additions and 3 deletions

View File

@@ -53,7 +53,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.isPartOf.name;
const title = $('meta[name="twitter:title"]').attr('content');
const date = moment.utc(data.dateCreated, 'YYYY-MM-DD').toDate();
const actors = data.actor