Added argument to disable actor association.
This commit is contained in:
parent
37b92209f0
commit
a1be68366c
|
|
@ -100,6 +100,11 @@ const { argv } = yargs
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
|
.option('associate-actors', {
|
||||||
|
describe: 'Associate scene actors',
|
||||||
|
type: 'boolean',
|
||||||
|
default: true,
|
||||||
|
})
|
||||||
.option('scene', {
|
.option('scene', {
|
||||||
describe: 'Scrape scene info from URL',
|
describe: 'Scrape scene info from URL',
|
||||||
type: 'array',
|
type: 'array',
|
||||||
|
|
|
||||||
|
|
@ -451,7 +451,7 @@ async function storeScenes(releases, useBatchId) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const [actors, storedSeries] = await Promise.all([
|
const [actors, storedSeries] = await Promise.all([
|
||||||
associateActors(releasesWithId, batchId),
|
argv.associateActors && associateActors(releasesWithId, batchId),
|
||||||
storeSeries(releasesWithId.map((release) => release.serie && { ...release.serie, entity: release.entity }).filter(Boolean), batchId),
|
storeSeries(releasesWithId.map((release) => release.serie && { ...release.serie, entity: release.entity }).filter(Boolean), batchId),
|
||||||
associateReleaseTags(releasesWithId),
|
associateReleaseTags(releasesWithId),
|
||||||
storeChapters(releasesWithId),
|
storeChapters(releasesWithId),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue