Added tag reassociation and dedupe migration.
This commit is contained in:
13
src/app.js
13
src/app.js
@@ -25,6 +25,7 @@ const { scrapeActors, deleteActors, flushActors, flushProfiles, interpolateProfi
|
||||
const { flushEntities } = require('./entities');
|
||||
const { deleteScenes, deleteMovies, flushScenes, flushMovies, flushBatches } = require('./releases');
|
||||
const { flushOrphanedMedia } = require('./media');
|
||||
const { reassociateEntityReleaseTags, reassociateReleaseTags, reassociateOriginalTags } = require('./tags');
|
||||
const getFileEntries = require('./utils/file-entries');
|
||||
|
||||
const inspector = new Inspector();
|
||||
@@ -186,6 +187,18 @@ async function init() {
|
||||
await deleteMovies(argv.deleteMovies);
|
||||
}
|
||||
|
||||
if (argv.originalTags) {
|
||||
await reassociateOriginalTags(argv.originalTags, argv.rematchTags);
|
||||
}
|
||||
|
||||
if (argv.releaseTags) {
|
||||
await reassociateReleaseTags(argv.releaseTags, argv.rematchTags);
|
||||
}
|
||||
|
||||
if (argv.networkReleaseTags || argv.channelReleaseTags) {
|
||||
await reassociateEntityReleaseTags(argv.networkReleaseTags, argv.channelReleaseTags, argv.rematchTags);
|
||||
}
|
||||
|
||||
if (argv.flushOrphanedMedia) {
|
||||
await flushOrphanedMedia();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user