mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Separate graphql API from rest of the system (#2503)
* Move graphql generated files to api * Refactor identify options * Remove models.StashBoxes * Move ScraperSource to scraper package * Rename field strategy enums * Rename identify.TaskOptions to Options
This commit is contained in:
27
internal/manager/config/tasks.go
Normal file
27
internal/manager/config/tasks.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package config
|
||||
|
||||
type ScanMetadataOptions struct {
|
||||
// Set name, date, details from metadata (if present)
|
||||
UseFileMetadata bool `json:"useFileMetadata"`
|
||||
// Strip file extension from title
|
||||
StripFileExtension bool `json:"stripFileExtension"`
|
||||
// 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user