Added preflight method to scrapers. Added Assylum.

This commit is contained in:
2020-02-12 01:54:54 +01:00
parent bec26ee072
commit 2f70de8e11
14 changed files with 185 additions and 19 deletions

View File

@@ -362,7 +362,9 @@ async function scrapeActors(actorNames) {
const actorEntry = await knex('actors').where({ slug: actorSlug }).first();
const sources = argv.sources || config.profiles || Object.keys(scrapers.actors);
const profiles = await Promise.map(sources, async (source) => {
const finalSources = argv.withReleases ? sources.flat() : sources; // ignore race-to-success grouping when scenes are requested
const profiles = await Promise.map(finalSources, async (source) => {
// const [scraperSlug, scraper] = source;
const profileScrapers = [].concat(source).map(slug => ({ scraperSlug: slug, scraper: scrapers.actors[slug] }));