Fixed Nubiles deep scrape date.

This commit is contained in:
DebaucheryLibrarian 2021-02-20 01:16:09 +01:00
parent 39e2abd80a
commit a39750d808
1 changed files with 2 additions and 8 deletions

View File

@ -72,7 +72,7 @@ async function scrapeScene({ query }, url, site) {
release.title = query.q('.content-pane-title h2', true); release.title = query.q('.content-pane-title h2', true);
release.description = query.q('.content-pane-column div', true); release.description = query.q('.content-pane-column div', true);
release.date = query.q('.date', 'MMM D, YYYY'); release.date = query.date('.date', 'MMM D, YYYY');
release.actors = query.all('.content-pane-performers .model', true); release.actors = query.all('.content-pane-performers .model', true);
release.tags = query.all('.categories a', true); release.tags = query.all('.categories a', true);
@ -134,12 +134,6 @@ async function fetchUpcoming(site) {
return []; return [];
} }
async function fetchScene(url, site) {
const res = await qu.get(url);
return res.ok ? scrapeScene(res.item, url, site) : res.status;
}
async function fetchProfile({ name: actorName }, { site }) { async function fetchProfile({ name: actorName }, { site }) {
const firstLetter = actorName.charAt(0).toLowerCase(); const firstLetter = actorName.charAt(0).toLowerCase();
const origin = slugUrlMap[site.slug] || site.url; const origin = slugUrlMap[site.slug] || site.url;
@ -164,6 +158,6 @@ async function fetchProfile({ name: actorName }, { site }) {
module.exports = { module.exports = {
fetchLatest, fetchLatest,
fetchUpcoming, fetchUpcoming,
fetchScene,
fetchProfile, fetchProfile,
scrapeScene,
}; };