Added upcoming support to Nubiles. Renamed q's formatDate to extractDate, added actual formatDate.

This commit is contained in:
2020-02-13 04:11:32 +01:00
parent bbf06a3882
commit 1ff8d37d89
8 changed files with 81 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
'use strict';
const { get, geta, ctxa, fd } = require('../utils/q');
const { get, geta, ctxa, ed } = require('../utils/q');
const slugify = require('../utils/slugify');
function scrapeAll(scenes, site) {
@@ -67,7 +67,7 @@ function scrapeProfile({ q, qa, qtx }) {
if (bio.weight) profile.weight = Number(bio.weight.match(/\((\d+)kg\)/)[1]);
if (bio.race) profile.ethnicity = bio.race;
if (bio.date_of_birth) profile.birthdate = fd(bio.date_of_birth, 'MMMM D, YYYY');
if (bio.date_of_birth) profile.birthdate = ed(bio.date_of_birth, 'MMMM D, YYYY');
if (bio.birthplace) profile.birthPlace = bio.birthplace;
if (bio.measurements) {