Passing context object with site or network instead of scraper slug and 'site or network' to all profile scrapers.
This commit is contained in:
@@ -20,7 +20,13 @@ async function init() {
|
||||
}
|
||||
|
||||
if (argv.actors) {
|
||||
await scrapeActors(argv.actors);
|
||||
const actors = await scrapeActors(argv.actors);
|
||||
|
||||
if (argv.actorScenes) {
|
||||
const actorReleases = actors.map(actor => actor.releases).flat().filter(Boolean);
|
||||
|
||||
await storeReleases(actorReleases);
|
||||
}
|
||||
}
|
||||
|
||||
const updateBaseScenes = (argv.scrape || argv.sites || argv.networks) && await fetchUpdates();
|
||||
|
||||
Reference in New Issue
Block a user