Added 21Sextreme and 21Naturals networks. Scraping all actor release pages for Brazzers.

This commit is contained in:
2020-02-09 02:01:39 +01:00
parent 885f51943a
commit e61ed2bb5f
24 changed files with 2664 additions and 59 deletions

View File

@@ -186,7 +186,7 @@ async function scrapeScene(html, url, site) {
// date in data object is not the release date of the scene, but the date the entry was added; only use as fallback
const dateString = $('.updatedDate').first().text().trim();
const dateMatch = dateString.match(/\d{2,4}-\d{2}-\d{2,4}/)?.[0];
const dateMatch = dateString.match(/\d{2,4}[-/]\d{2}[-/]\d{2,4}/)?.[0];
if (dateMatch) release.date = moment.utc(dateMatch, ['MM-DD-YYYY', 'YYYY-MM-DD']).toDate();
else if (data?.dateCreated) release.date = moment.utc(data.dateCreated, 'YYYY-MM-DD').toDate();