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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user