Improved scraping and association behavior.
This commit is contained in:
11
src/app.js
11
src/app.js
@@ -6,7 +6,7 @@ const initServer = require('./web/server');
|
||||
|
||||
const scrapeSites = require('./scrape-sites');
|
||||
const scrapeRelease = require('./scrape-release');
|
||||
const { scrapeActors } = require('./actors');
|
||||
const { scrapeActors, scrapeBasicActors } = require('./actors');
|
||||
|
||||
async function init() {
|
||||
if (argv.url) {
|
||||
@@ -24,13 +24,20 @@ async function init() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (argv.actors) {
|
||||
if (argv.actors && argv.actors.length > 0) {
|
||||
await scrapeActors();
|
||||
knex.destroy();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (argv.actors) {
|
||||
await scrapeBasicActors();
|
||||
knex.destroy();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
await initServer();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user