Drastic actor page redesign. Storing one avatar per actor, other profile photos as 'photo' role; no longer assuming first photo is avatar.

This commit is contained in:
2019-11-28 05:36:22 +01:00
parent 884ef248e4
commit 4be508b388
300 changed files with 1110 additions and 213 deletions

View File

@@ -1,5 +1,7 @@
'use strict';
const Promise = require('bluebird');
const argv = require('./argv');
const knex = require('./knex');
const initServer = require('./web/server');
@@ -10,7 +12,10 @@ const { scrapeActors, scrapeBasicActors } = require('./actors');
async function init() {
if (argv.url) {
await scrapeRelease(argv.url);
await Promise.map(argv.url, async url => scrapeRelease(url), {
concurrency: 5,
});
knex.destroy();
return;