Added scene media detach.

This commit is contained in:
DebaucheryLibrarian
2026-02-24 06:17:38 +01:00
parent 35c941488e
commit dc7f325d13
4 changed files with 67 additions and 5 deletions

View File

@@ -349,7 +349,32 @@ const { argv } = yargs
describe: 'Remove files from storage when flushing media.',
type: 'boolean',
alias: 'flush-files',
default: true,
})
.option('detach-channel-media', {
describe: 'Remove media files from channel scenes.',
type: 'array',
})
.option('detach-network-media', {
describe: 'Remove media files from network scenes.',
type: 'array',
})
.option('detach-release-media', {
describe: 'Remove media files from network scenes.',
type: 'array',
alias: ['detach-scene-media'],
})
.option('detach-media-domains', {
describe: 'Only detach these types of media.',
type: 'array',
default: [
'posters',
'photos',
'caps',
'trailers',
'teasers',
'covers',
],
alias: ['detach-media'],
})
.option('flush-channels', {
describe: 'Delete all scenes and movies from channels.',