forked from DebaucheryLibrarian/traxxx
Switched to tabs. Adding missing actor entries when scraping actors, with batch ID.
This commit is contained in:
@@ -4,18 +4,18 @@ const argv = require('../argv');
|
||||
const knex = require('../knex');
|
||||
|
||||
async function printTitles() {
|
||||
const titles = await knex('releases')
|
||||
.where((builder) => {
|
||||
if (argv.sites) builder.whereIn('sites.slug', argv.sites);
|
||||
if (argv.networks) builder.orWhereIn('networks.slug', argv.networks);
|
||||
})
|
||||
.join('sites', 'sites.id', 'releases.site_id')
|
||||
.join('networks', 'networks.id', 'sites.network_id')
|
||||
.pluck('title');
|
||||
const titles = await knex('releases')
|
||||
.where((builder) => {
|
||||
if (argv.sites) builder.whereIn('sites.slug', argv.sites);
|
||||
if (argv.networks) builder.orWhereIn('networks.slug', argv.networks);
|
||||
})
|
||||
.join('sites', 'sites.id', 'releases.site_id')
|
||||
.join('networks', 'networks.id', 'sites.network_id')
|
||||
.pluck('title');
|
||||
|
||||
console.log(titles.join('\n'));
|
||||
console.log(titles.join('\n'));
|
||||
|
||||
knex.destroy();
|
||||
knex.destroy();
|
||||
}
|
||||
|
||||
printTitles();
|
||||
|
||||
Reference in New Issue
Block a user