Fixed actor list and title trimming for Jules Jordan scraper.

This commit is contained in:
ThePendulum 2019-03-25 04:15:45 +01:00
parent 23e6d46052
commit c60ceeabfa
1 changed files with 2 additions and 2 deletions

View File

@ -71,12 +71,12 @@ function scrapeUpcoming(html, site) {
async function scrapeScene(html, url, site) {
const $ = cheerio.load(html, { normalizeWhitespace: true });
const title = $('.title_bar_hilite').text();
const title = $('.title_bar_hilite').text().trim();
const date = moment
.utc($('.update_date').text(), 'MM/DD/YYYY')
.toDate();
const actors = $('.update_description + .update_models a')
const actors = $('.backgroundcolor_info > .update_models a')
.map((_actorIndex, actorElement) => $(actorElement).text())
.toArray();