mirror of
https://github.com/stashapp/stash.git
synced 2025-12-11 10:54:14 +01:00
* Refactor transaction hooks. Add preCommit * Add BlobStore * Use blobStore for tag images * Use blobStore for studio images * Use blobStore for performer images * Use blobStore for scene covers * Don't generate screenshots in legacy directory * Run post-hooks outside original transaction * Use blobStore for movie images * Remove unnecessary DestroyImage methods * Add missing filter for scene cover * Add covers to generate options * Add generate cover option to UI * Add screenshot migration * Delete thumb files as part of screenshot migration
31 lines
1.2 KiB
Go
31 lines
1.2 KiB
Go
package config
|
|
|
|
type ScanMetadataOptions struct {
|
|
// Set name, date, details from metadata (if present)
|
|
// Deprecated: not implemented
|
|
UseFileMetadata bool `json:"useFileMetadata"`
|
|
// Strip file extension from title
|
|
// Deprecated: not implemented
|
|
StripFileExtension bool `json:"stripFileExtension"`
|
|
// Generate scene covers during scan
|
|
ScanGenerateCovers bool `json:"scanGenerateCovers"`
|
|
// Generate previews during scan
|
|
ScanGeneratePreviews bool `json:"scanGeneratePreviews"`
|
|
// Generate image previews during scan
|
|
ScanGenerateImagePreviews bool `json:"scanGenerateImagePreviews"`
|
|
// Generate sprites during scan
|
|
ScanGenerateSprites bool `json:"scanGenerateSprites"`
|
|
// Generate phashes during scan
|
|
ScanGeneratePhashes bool `json:"scanGeneratePhashes"`
|
|
// Generate image thumbnails during scan
|
|
ScanGenerateThumbnails bool `json:"scanGenerateThumbnails"`
|
|
}
|
|
|
|
type AutoTagMetadataOptions struct {
|
|
// IDs of performers to tag files with, or "*" for all
|
|
Performers []string `json:"performers"`
|
|
// IDs of studios to tag files with, or "*" for all
|
|
Studios []string `json:"studios"`
|
|
// IDs of tags to tag files with, or "*" for all
|
|
Tags []string `json:"tags"`
|
|
}
|