Added argument to disable actor association.
This commit is contained in:
parent
37b92209f0
commit
a1be68366c
|
|
@ -100,6 +100,11 @@ const { argv } = yargs
|
|||
type: 'boolean',
|
||||
default: false,
|
||||
})
|
||||
.option('associate-actors', {
|
||||
describe: 'Associate scene actors',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
})
|
||||
.option('scene', {
|
||||
describe: 'Scrape scene info from URL',
|
||||
type: 'array',
|
||||
|
|
|
|||
|
|
@ -451,7 +451,7 @@ async function storeScenes(releases, useBatchId) {
|
|||
});
|
||||
|
||||
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),
|
||||
associateReleaseTags(releasesWithId),
|
||||
storeChapters(releasesWithId),
|
||||
|
|
|
|||
Loading…
Reference in New Issue