Added option to fetch all of an actor's releases (for supporter scrapers), and a utility to extract posters.

This commit is contained in:
2020-01-31 01:55:55 +01:00
parent 4ecb386233
commit ffdf0690e7
5 changed files with 58 additions and 5 deletions

View File

@@ -22,7 +22,13 @@ async function init() {
}
if (argv.actors && argv.actors.length > 0) {
await scrapeActors();
const actors = await scrapeActors();
if (argv.withReleases) {
const releases = actors.map(actor => actor.releases).flat();
await scrapeReleases(releases, null, 'scene');
}
}
if (argv.actors && argv.actors.length === 0) {