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,7 +1,7 @@
'use strict';
const bhttp = require('bhttp');
const { get, exa, fd } = require('../utils/q');
const { get, exa, ed } = require('../utils/q');
function scrapeLatest(html, site) {
const scenes = site.slug === 'paintoy'
@@ -26,7 +26,7 @@ function scrapeLatest(html, site) {
} else {
// title should contain date instead, not applicable in brief mode
release.title = title.slice(title.indexOf(':') + 1).trim();
release.date = fd(title.slice(0, title.indexOf(':')), 'MMM D, YYYY');
release.date = ed(title.slice(0, title.indexOf(':')), 'MMM D, YYYY');
}
release.actors = actors.map(actor => actor.trim());