Added flush movie argument to index file.
This commit is contained in:
parent
368aa8a89f
commit
b94a3e05bc
|
@ -11,7 +11,7 @@ const { fetchScenes, fetchMovies } = require('./deep');
|
||||||
const { storeScenes, storeMovies, updateReleasesSearch, associateMovieScenes } = require('./store-releases');
|
const { storeScenes, storeMovies, updateReleasesSearch, associateMovieScenes } = require('./store-releases');
|
||||||
const { scrapeActors, flushActors, flushProfiles, interpolateProfiles } = require('./actors');
|
const { scrapeActors, flushActors, flushProfiles, interpolateProfiles } = require('./actors');
|
||||||
const { flushEntities } = require('./entities');
|
const { flushEntities } = require('./entities');
|
||||||
const { deleteScenes, deleteMovies, flushScenes, flushBatches } = require('./releases');
|
const { deleteScenes, deleteMovies, flushScenes, flushMovies, flushBatches } = require('./releases');
|
||||||
const { flushOrphanedMedia } = require('./media');
|
const { flushOrphanedMedia } = require('./media');
|
||||||
const getFileEntries = require('./utils/file-entries');
|
const getFileEntries = require('./utils/file-entries');
|
||||||
|
|
||||||
|
@ -49,6 +49,10 @@ async function init() {
|
||||||
await flushScenes();
|
await flushScenes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argv.flushMovies) {
|
||||||
|
await flushMovies();
|
||||||
|
}
|
||||||
|
|
||||||
if (argv.deleteScenes) {
|
if (argv.deleteScenes) {
|
||||||
await deleteScenes(argv.deleteScenes);
|
await deleteScenes(argv.deleteScenes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue