Added flush movie argument to index file.

This commit is contained in:
DebaucheryLibrarian 2021-02-05 04:16:59 +01:00
parent 368aa8a89f
commit b94a3e05bc
1 changed files with 5 additions and 1 deletions

View File

@ -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);
} }