Added orphaned media flush and batch release flush.

This commit is contained in:
DebaucheryLibrarian
2020-10-25 00:52:40 +02:00
parent ef852f0191
commit 0bd7fca876
9 changed files with 196 additions and 29 deletions

View File

@@ -238,6 +238,11 @@ const { argv } = yargs
type: 'boolean',
default: false,
})
.option('flush-orphaned-media', {
describe: 'Remove all orphaned media items from database and disk.',
type: 'array',
alias: 'flush-media',
})
.option('flush-channels', {
describe: 'Delete all scenes and movies from channels.',
type: 'array',
@@ -248,10 +253,20 @@ const { argv } = yargs
type: 'array',
alias: 'flush-network',
})
.option('delete', {
.option('flush-batches', {
describe: 'Delete all scenes and movies from batch by ID.',
type: 'array',
alias: 'flush-batch',
})
.option('delete-scenes', {
describe: 'Remove scenes by ID.',
type: 'array',
alias: 'remove',
alias: ['delete-scene', 'delete', 'remove', 'remove-scenes', 'remove-scene'],
})
.option('delete-movies', {
describe: 'Remove movies by ID.',
type: 'array',
alias: ['delete-movie', 'remove-movies', 'remove-movies'],
})
.coerce('after', interpretAfter)
.coerce('actors-update', interpretAfter);