Documentation ¶
Index ¶
- Constants
- Variables
- func FileEnvSet() bool
- func IsOfficialBuild() bool
- type AutoTagMetadataOptions
- type ConfigDisableDropdownCreate
- type ConfigImageLightboxResult
- type ImageLightboxDisplayMode
- type ImageLightboxScrollMode
- type Instance
- func (i *Instance) ActivatePublicAccessTripwire(requestIP string) error
- func (i *Instance) FinalizeSetup()
- func (i *Instance) GetAPIKey() string
- func (i *Instance) GetAutostartVideo() bool
- func (i *Instance) GetAutostartVideoOnPlaySelected() bool
- func (i *Instance) GetBackupDirectoryPath() string
- func (i *Instance) GetBackupDirectoryPathOrDefault() string
- func (i *Instance) GetCPUProfilePath() string
- func (i *Instance) GetCSS() string
- func (i *Instance) GetCSSEnabled() bool
- func (i *Instance) GetCSSPath() string
- func (i *Instance) GetCachePath() string
- func (i *Instance) GetConfigFile() string
- func (i *Instance) GetConfigPath() string
- func (i *Instance) GetContinuePlaylistDefault() bool
- func (i *Instance) GetCreateGalleriesFromFolders() bool
- func (i *Instance) GetCredentials() (string, string)
- func (i *Instance) GetCustomLocales() string
- func (i *Instance) GetCustomLocalesEnabled() bool
- func (i *Instance) GetCustomLocalesPath() string
- func (i *Instance) GetCustomPerformerImageLocation() string
- func (i *Instance) GetCustomServedFolders() URLMap
- func (i *Instance) GetCustomUILocation() string
- func (i *Instance) GetDLNADefaultEnabled() bool
- func (i *Instance) GetDLNADefaultIPWhitelist() []string
- func (i *Instance) GetDLNAInterfaces() []string
- func (i *Instance) GetDLNAServerName() string
- func (i *Instance) GetDangerousAllowPublicWithoutAuth() bool
- func (i *Instance) GetDatabasePath() string
- func (i *Instance) GetDefaultAutoTagSettings() *AutoTagMetadataOptions
- func (i *Instance) GetDefaultDatabaseFilePath() string
- func (i *Instance) GetDefaultGenerateSettings() *models.GenerateMetadataOptions
- func (i *Instance) GetDefaultIdentifySettings() *identify.Options
- func (i *Instance) GetDefaultPluginsPath() string
- func (i *Instance) GetDefaultScanSettings() *ScanMetadataOptions
- func (i *Instance) GetDefaultScrapersPath() string
- func (i *Instance) GetDeleteFileDefault() bool
- func (i *Instance) GetDeleteGeneratedDefault() bool
- func (i *Instance) GetDisableDropdownCreate() *ConfigDisableDropdownCreate
- func (i *Instance) GetExcludes() []string
- func (i *Instance) GetExternalHost() string
- func (i *Instance) GetFunscriptOffset() int
- func (i *Instance) GetGalleryExtensions() []string
- func (i *Instance) GetGeneratedPath() string
- func (i *Instance) GetHandyKey() string
- func (i *Instance) GetHost() string
- func (i *Instance) GetImageExcludes() []string
- func (i *Instance) GetImageExtensions() []string
- func (i *Instance) GetImageLightboxOptions() ConfigImageLightboxResult
- func (i *Instance) GetJWTSignKey() []byte
- func (i *Instance) GetLanguage() string
- func (i *Instance) GetLogAccess() bool
- func (i *Instance) GetLogFile() string
- func (i *Instance) GetLogLevel() string
- func (i *Instance) GetLogOut() bool
- func (i *Instance) GetMaxSessionAge() int
- func (i *Instance) GetMaxStreamingTranscodeSize() models.StreamingResolutionEnum
- func (i *Instance) GetMaxTranscodeSize() models.StreamingResolutionEnum
- func (i *Instance) GetMaxUploadSize() int64
- func (i *Instance) GetMaximumLoopDuration() int
- func (i *Instance) GetMenuItems() []string
- func (i *Instance) GetMetadataPath() string
- func (i *Instance) GetNoBrowser() bool
- func (i *Instance) GetNotificationsEnabled() bool
- func (i *Instance) GetParallelTasks() int
- func (i *Instance) GetParallelTasksWithAutoDetection() int
- func (i *Instance) GetPasswordHash() string
- func (i *Instance) GetPluginsPath() string
- func (i *Instance) GetPort() int
- func (i *Instance) GetPreviewAudio() bool
- func (i *Instance) GetPreviewExcludeEnd() string
- func (i *Instance) GetPreviewExcludeStart() string
- func (i *Instance) GetPreviewPreset() models.PreviewPreset
- func (i *Instance) GetPreviewSegmentDuration() float64
- func (i *Instance) GetPreviewSegments() int
- func (i *Instance) GetPythonPath() string
- func (i *Instance) GetScraperCDPPath() string
- func (i *Instance) GetScraperCertCheck() bool
- func (i *Instance) GetScraperExcludeTagPatterns() []string
- func (i *Instance) GetScraperUserAgent() string
- func (i *Instance) GetScrapersPath() string
- func (i *Instance) GetSecurityTripwireAccessedFromPublicInternet() string
- func (i *Instance) GetSessionStoreKey() []byte
- func (i *Instance) GetShowOneTimeMovedNotification() bool
- func (i *Instance) GetShowScrubber() bool
- func (i *Instance) GetShowStudioAsText() bool
- func (i *Instance) GetSoundOnPreview() bool
- func (i *Instance) GetStashBoxes() []*models.StashBox
- func (i *Instance) GetStashPaths() []*StashConfig
- func (i *Instance) GetTLSFiles() (certFile, keyFile string)
- func (i *Instance) GetThemeColor() string
- func (i *Instance) GetUIConfiguration() map[string]interface{}
- func (i *Instance) GetUsername() string
- func (i *Instance) GetVideoExtensions() []string
- func (i *Instance) GetVideoFileNamingAlgorithm() models.HashAlgorithm
- func (i *Instance) GetWallPlayback() string
- func (i *Instance) GetWallShowTitle() bool
- func (i *Instance) HasCredentials() bool
- func (i *Instance) HasOverride(key string) bool
- func (i *Instance) HasTLSConfig() bool
- func (i *Instance) InitTLS()
- func (i *Instance) IsCalculateMD5() bool
- func (i *Instance) IsNewSystem() bool
- func (i *Instance) IsWriteImageThumbnails() bool
- func (i *Instance) Set(key string, value interface{})
- func (i *Instance) SetCSS(css string)
- func (i *Instance) SetConfigFile(fn string)
- func (i *Instance) SetCustomLocales(customLocales string)
- func (i *Instance) SetDefault(key string, value interface{})
- func (i *Instance) SetInitialConfig() error
- func (i *Instance) SetInitialMemoryConfig() error
- func (i *Instance) SetPassword(value string)
- func (i *Instance) SetUIConfiguration(v map[string]interface{})
- func (i *Instance) Validate() error
- func (i *Instance) ValidateCredentials(username string, password string) bool
- func (i *Instance) ValidateStashBoxes(boxes []*StashBoxInput) error
- func (i *Instance) Write() error
- type MissingConfigError
- type ScanMetadataOptions
- type StashBoxError
- type StashBoxInput
- type StashConfig
- type StashConfigInput
- type URLMap
Constants ¶
const ( Stash = "stash" Cache = "cache" BackupDirectoryPath = "backup_directory_path" Generated = "generated" Metadata = "metadata" Downloads = "downloads" ApiKey = "api_key" Username = "username" Password = "password" MaxSessionAge = "max_session_age" DefaultMaxSessionAge = 60 * 60 * 1 // 1 hours Database = "database" Exclude = "exclude" ImageExclude = "image_exclude" VideoExtensions = "video_extensions" ImageExtensions = "image_extensions" GalleryExtensions = "gallery_extensions" CreateGalleriesFromFolders = "create_galleries_from_folders" // CalculateMD5 is the config key used to determine if MD5 should be calculated // for video files. CalculateMD5 = "calculate_md5" // VideoFileNamingAlgorithm is the config key used to determine what hash // should be used when generating and using generated files for scenes. VideoFileNamingAlgorithm = "video_file_naming_algorithm" MaxTranscodeSize = "max_transcode_size" MaxStreamingTranscodeSize = "max_streaming_transcode_size" ParallelTasks = "parallel_tasks" PreviewPreset = "preview_preset" PreviewAudio = "preview_audio" PreviewSegmentDuration = "preview_segment_duration" PreviewSegments = "preview_segments" PreviewExcludeStart = "preview_exclude_start" PreviewExcludeEnd = "preview_exclude_end" WriteImageThumbnails = "write_image_thumbnails" Host = "host" Port = "port" ExternalHost = "external_host" // key used to sign JWT tokens JWTSignKey = "jwt_secret_key" // key used for session store SessionStoreKey = "session_store_key" // scraping options ScrapersPath = "scrapers_path" ScraperUserAgent = "scraper_user_agent" ScraperCertCheck = "scraper_cert_check" ScraperCDPPath = "scraper_cdp_path" ScraperExcludeTagPatterns = "scraper_exclude_tag_patterns" // stash-box options StashBoxes = "stash_boxes" PythonPath = "python_path" // plugin options PluginsPath = "plugins_path" // i18n Language = "language" // served directories // this should be manually configured only CustomServedFolders = "custom_served_folders" // UI directory. Overrides to serve the UI from a specific location // rather than use the embedded UI. CustomUILocation = "custom_ui_location" // Interface options MenuItems = "menu_items" SoundOnPreview = "sound_on_preview" WallShowTitle = "wall_show_title" CustomPerformerImageLocation = "custom_performer_image_location" MaximumLoopDuration = "maximum_loop_duration" AutostartVideo = "autostart_video" AutostartVideoOnPlaySelected = "autostart_video_on_play_selected" ContinuePlaylistDefault = "continue_playlist_default" ShowStudioAsText = "show_studio_as_text" CSSEnabled = "cssEnabled" CustomLocalesEnabled = "customLocalesEnabled" ShowScrubber = "show_scrubber" WallPlayback = "wall_playback" ImageLightboxSlideshowDelay = "image_lightbox.slideshow_delay" ImageLightboxDisplayModeKey = "image_lightbox.display_mode" ImageLightboxScaleUp = "image_lightbox.scale_up" ImageLightboxScrollModeKey = "image_lightbox.scroll_mode" ImageLightboxScrollAttemptsBeforeChange = "image_lightbox.scroll_attempts_before_change" UI = "ui" DisableDropdownCreatePerformer = "disable_dropdown_create.performer" DisableDropdownCreateStudio = "disable_dropdown_create.studio" DisableDropdownCreateTag = "disable_dropdown_create.tag" HandyKey = "handy_key" FunscriptOffset = "funscript_offset" ThemeColor = "theme_color" DefaultThemeColor = "#202b33" SecurityTripwireAccessedFromPublicInternet = "security_tripwire_accessed_from_public_internet" // DLNA options DLNAServerName = "dlna.server_name" DLNADefaultEnabled = "dlna.default_enabled" DLNADefaultIPWhitelist = "dlna.default_whitelist" DLNAInterfaces = "dlna.interfaces" // Logging options LogFile = "logFile" LogOut = "logOut" LogLevel = "logLevel" LogAccess = "logAccess" // Default settings DefaultScanSettings = "defaults.scan_task" DefaultIdentifySettings = "defaults.identify_task" DefaultAutoTagSettings = "defaults.auto_tag_task" DefaultGenerateSettings = "defaults.generate_task" DeleteFileDefault = "defaults.delete_file" DeleteGeneratedDefault = "defaults.delete_generated" // Desktop Integration Options NoBrowser = "noBrowser" NoBrowserDefault = false NotificationsEnabled = "notifications_enabled" NotificationsEnabledDefault = true ShowOneTimeMovedNotification = "show_one_time_moved_notification" ShowOneTimeMovedNotificationDefault = false // File upload options MaxUploadSize = "max_upload_size" )
Variables ¶
var AllImageLightboxDisplayMode = []ImageLightboxDisplayMode{ ImageLightboxDisplayModeOriginal, ImageLightboxDisplayModeFitXy, ImageLightboxDisplayModeFitX, }
var AllImageLightboxScrollMode = []ImageLightboxScrollMode{ ImageLightboxScrollModeZoom, ImageLightboxScrollModePanY, }
Functions ¶
func FileEnvSet ¶
func FileEnvSet() bool
FileEnvSet returns true if the configuration file environment parameter is set.
func IsOfficialBuild ¶
func IsOfficialBuild() bool
Types ¶
type AutoTagMetadataOptions ¶ added in v0.17.0
type ConfigDisableDropdownCreate ¶ added in v0.17.0
type ConfigImageLightboxResult ¶ added in v0.17.0
type ConfigImageLightboxResult struct { SlideshowDelay *int `json:"slideshowDelay"` DisplayMode *ImageLightboxDisplayMode `json:"displayMode"` ScaleUp *bool `json:"scaleUp"` ScrollMode *ImageLightboxScrollMode `json:"scrollMode"` ScrollAttemptsBeforeChange int `json:"scrollAttemptsBeforeChange"` }
type ImageLightboxDisplayMode ¶
type ImageLightboxDisplayMode string
const ( ImageLightboxDisplayModeOriginal ImageLightboxDisplayMode = "ORIGINAL" ImageLightboxDisplayModeFitXy ImageLightboxDisplayMode = "FIT_XY" ImageLightboxDisplayModeFitX ImageLightboxDisplayMode = "FIT_X" )
func (ImageLightboxDisplayMode) IsValid ¶ added in v0.17.0
func (e ImageLightboxDisplayMode) IsValid() bool
func (ImageLightboxDisplayMode) MarshalGQL ¶ added in v0.17.0
func (e ImageLightboxDisplayMode) MarshalGQL(w io.Writer)
func (ImageLightboxDisplayMode) String ¶ added in v0.17.0
func (e ImageLightboxDisplayMode) String() string
func (*ImageLightboxDisplayMode) UnmarshalGQL ¶ added in v0.17.0
func (e *ImageLightboxDisplayMode) UnmarshalGQL(v interface{}) error
type ImageLightboxScrollMode ¶
type ImageLightboxScrollMode string
const ( ImageLightboxScrollModeZoom ImageLightboxScrollMode = "ZOOM" ImageLightboxScrollModePanY ImageLightboxScrollMode = "PAN_Y" )
func (ImageLightboxScrollMode) IsValid ¶ added in v0.17.0
func (e ImageLightboxScrollMode) IsValid() bool
func (ImageLightboxScrollMode) MarshalGQL ¶ added in v0.17.0
func (e ImageLightboxScrollMode) MarshalGQL(w io.Writer)
func (ImageLightboxScrollMode) String ¶ added in v0.17.0
func (e ImageLightboxScrollMode) String() string
func (*ImageLightboxScrollMode) UnmarshalGQL ¶ added in v0.17.0
func (e *ImageLightboxScrollMode) UnmarshalGQL(v interface{}) error
type Instance ¶
func GetInstance ¶
func GetInstance() *Instance
func Initialize ¶
func (*Instance) ActivatePublicAccessTripwire ¶
ActivatePublicAccessTripwire sets the security_tripwire_accessed_from_public_internet config field to the provided IP address to indicate that stash has been accessed from this public IP without authentication.
func (*Instance) FinalizeSetup ¶
func (i *Instance) FinalizeSetup()
func (*Instance) GetAutostartVideo ¶
func (*Instance) GetAutostartVideoOnPlaySelected ¶
func (*Instance) GetBackupDirectoryPath ¶ added in v0.17.0
func (*Instance) GetBackupDirectoryPathOrDefault ¶ added in v0.17.0
func (*Instance) GetCPUProfilePath ¶
GetCPUProfilePath returns the path to the CPU profile file to output profiling info to. This is set only via a commandline flag. Returns an empty string if not set.
func (*Instance) GetCSSEnabled ¶
func (*Instance) GetCSSPath ¶
func (*Instance) GetCachePath ¶
func (*Instance) GetConfigFile ¶
GetConfigFile returns the full path to the used configuration file.
func (*Instance) GetConfigPath ¶
GetConfigPath returns the path of the directory containing the used configuration file.
func (*Instance) GetContinuePlaylistDefault ¶
func (*Instance) GetCreateGalleriesFromFolders ¶
func (*Instance) GetCredentials ¶
func (*Instance) GetCustomLocales ¶ added in v0.17.0
func (*Instance) GetCustomLocalesEnabled ¶ added in v0.17.0
func (*Instance) GetCustomLocalesPath ¶ added in v0.17.0
func (*Instance) GetCustomPerformerImageLocation ¶
func (*Instance) GetCustomServedFolders ¶
GetCustomServedFolders gets the map of custom paths to their applicable filesystem locations
func (*Instance) GetCustomUILocation ¶
func (*Instance) GetDLNADefaultEnabled ¶
GetDLNADefaultEnabled returns true if the DLNA is enabled by default.
func (*Instance) GetDLNADefaultIPWhitelist ¶
GetDLNADefaultIPWhitelist returns a list of IP addresses/wildcards that are allowed to use the DLNA service.
func (*Instance) GetDLNAInterfaces ¶
GetDLNAInterfaces returns a list of interface names to expose DLNA on. If empty, runs on all interfaces.
func (*Instance) GetDLNAServerName ¶
GetDLNAServerName returns the visible name of the DLNA server. If empty, "stash" will be used.
func (*Instance) GetDangerousAllowPublicWithoutAuth ¶
GetDangerousAllowPublicWithoutAuth determines if the security feature is enabled. See https://github.com/stashapp/stash/wiki/Authentication-Required-When-Accessing-Stash-From-the-Internet
func (*Instance) GetDatabasePath ¶
func (*Instance) GetDefaultAutoTagSettings ¶
func (i *Instance) GetDefaultAutoTagSettings() *AutoTagMetadataOptions
GetDefaultAutoTagSettings returns the default Scan task settings. Returns nil if the settings could not be unmarshalled, or if it has not been set.
func (*Instance) GetDefaultDatabaseFilePath ¶
GetDefaultDatabaseFilePath returns the default database filename, which is located in the same directory as the config file.
func (*Instance) GetDefaultGenerateSettings ¶
func (i *Instance) GetDefaultGenerateSettings() *models.GenerateMetadataOptions
GetDefaultGenerateSettings returns the default Scan task settings. Returns nil if the settings could not be unmarshalled, or if it has not been set.
func (*Instance) GetDefaultIdentifySettings ¶
GetDefaultIdentifySettings returns the default Identify task settings. Returns nil if the settings could not be unmarshalled, or if it has not been set.
func (*Instance) GetDefaultPluginsPath ¶
func (*Instance) GetDefaultScanSettings ¶
func (i *Instance) GetDefaultScanSettings() *ScanMetadataOptions
GetDefaultScanSettings returns the default Scan task settings. Returns nil if the settings could not be unmarshalled, or if it has not been set.
func (*Instance) GetDefaultScrapersPath ¶
func (*Instance) GetDeleteFileDefault ¶
func (*Instance) GetDeleteGeneratedDefault ¶
func (*Instance) GetDisableDropdownCreate ¶
func (i *Instance) GetDisableDropdownCreate() *ConfigDisableDropdownCreate
func (*Instance) GetExcludes ¶
func (*Instance) GetExternalHost ¶
func (*Instance) GetFunscriptOffset ¶
func (*Instance) GetGalleryExtensions ¶
func (*Instance) GetGeneratedPath ¶
func (*Instance) GetHandyKey ¶
func (*Instance) GetImageExcludes ¶
func (*Instance) GetImageExtensions ¶
func (*Instance) GetImageLightboxOptions ¶
func (i *Instance) GetImageLightboxOptions() ConfigImageLightboxResult
func (*Instance) GetJWTSignKey ¶
func (*Instance) GetLanguage ¶
func (*Instance) GetLogAccess ¶
GetLogAccess returns true if http requests should be logged to the terminal. HTTP requests are not logged to the log file. Defaults to true.
func (*Instance) GetLogFile ¶
GetLogFile returns the filename of the file to output logs to. An empty string means that file logging will be disabled.
func (*Instance) GetLogLevel ¶
GetLogLevel returns the lowest log level to write to the log. Should be one of "Debug", "Info", "Warning", "Error"
func (*Instance) GetLogOut ¶
GetLogOut returns true if logging should be output to the terminal in addition to writing to a log file. Logging will be output to the terminal if file logging is disabled. Defaults to true.
func (*Instance) GetMaxSessionAge ¶
GetMaxSessionAge gets the maximum age for session cookies, in seconds. Session cookie expiry times are refreshed every request.
func (*Instance) GetMaxStreamingTranscodeSize ¶
func (i *Instance) GetMaxStreamingTranscodeSize() models.StreamingResolutionEnum
func (*Instance) GetMaxTranscodeSize ¶
func (i *Instance) GetMaxTranscodeSize() models.StreamingResolutionEnum
func (*Instance) GetMaxUploadSize ¶
Max allowed graphql upload size in megabytes
func (*Instance) GetMaximumLoopDuration ¶
func (*Instance) GetMetadataPath ¶
func (*Instance) GetNoBrowser ¶
func (*Instance) GetNotificationsEnabled ¶
func (*Instance) GetParallelTasks ¶
GetParallelTasks returns the number of parallel tasks that should be started by scan or generate task.
func (*Instance) GetParallelTasksWithAutoDetection ¶
func (*Instance) GetPasswordHash ¶
func (*Instance) GetPluginsPath ¶
func (*Instance) GetPreviewAudio ¶
func (*Instance) GetPreviewExcludeEnd ¶
GetPreviewExcludeEnd returns the configuration setting string for excluding the end of scene videos for preview generation. A float value is interpreted as the amount of seconds to exclude from the end of the video when generating previews. If the value is suffixed with a '%' character, then it is interpreted as a proportion of the total video duration.
func (*Instance) GetPreviewExcludeStart ¶
GetPreviewExcludeStart returns the configuration setting string for excluding the start of scene videos for preview generation. This can be in two possible formats. A float value is interpreted as the amount of seconds to exclude from the start of the video before it is included in the preview. If the value is suffixed with a '%' character (for example '2%'), then it is interpreted as a proportion of the total video duration.
func (*Instance) GetPreviewPreset ¶
func (i *Instance) GetPreviewPreset() models.PreviewPreset
GetPreviewPreset returns the preset when generating previews. Defaults to Slow.
func (*Instance) GetPreviewSegmentDuration ¶
GetPreviewSegmentDuration returns the duration of a single segment in a scene preview file, in seconds.
func (*Instance) GetPreviewSegments ¶
GetPreviewSegments returns the amount of segments in a scene preview file.
func (*Instance) GetPythonPath ¶
func (*Instance) GetScraperCDPPath ¶
GetScraperCDPPath gets the path to the Chrome executable or remote address to an instance of Chrome.
func (*Instance) GetScraperCertCheck ¶
GetScraperCertCheck returns true if the scraper should check for insecure certificates when fetching an image or a page.
func (*Instance) GetScraperExcludeTagPatterns ¶
func (*Instance) GetScraperUserAgent ¶
func (*Instance) GetScrapersPath ¶
func (*Instance) GetSecurityTripwireAccessedFromPublicInternet ¶
GetSecurityTripwireAccessedFromPublicInternet returns a public IP address if stash has been accessed from the public internet, with no auth enabled, and DangerousAllowPublicWithoutAuth disabled. Returns an empty string otherwise.
func (*Instance) GetSessionStoreKey ¶
func (*Instance) GetShowOneTimeMovedNotification ¶
GetShowOneTimeMovedNotification shows whether a small notification to inform the user that Stash will no longer show a terminal window, and instead will be available in the tray, should be shown. It is true when an existing system is started after upgrading, and set to false forever after it is shown.
func (*Instance) GetShowScrubber ¶
func (*Instance) GetShowStudioAsText ¶
func (*Instance) GetSoundOnPreview ¶
func (*Instance) GetStashBoxes ¶
func (*Instance) GetStashPaths ¶
func (i *Instance) GetStashPaths() []*StashConfig
GetStathPaths returns the configured stash library paths. Works opposite to the usual case - it will return the override value only if the main value is not set.
func (*Instance) GetTLSFiles ¶
func (*Instance) GetThemeColor ¶
func (*Instance) GetUIConfiguration ¶ added in v0.16.0
func (*Instance) GetUsername ¶
func (*Instance) GetVideoExtensions ¶
func (*Instance) GetVideoFileNamingAlgorithm ¶
func (i *Instance) GetVideoFileNamingAlgorithm() models.HashAlgorithm
GetVideoFileNamingAlgorithm returns what hash algorithm should be used for naming generated scene video files.
func (*Instance) GetWallPlayback ¶
func (*Instance) GetWallShowTitle ¶
func (*Instance) HasCredentials ¶
func (*Instance) HasOverride ¶
func (*Instance) HasTLSConfig ¶
func (*Instance) IsCalculateMD5 ¶
IsCalculateMD5 returns true if MD5 checksums should be generated for scene video files.
func (*Instance) IsNewSystem ¶
func (*Instance) IsWriteImageThumbnails ¶
IsWriteImageThumbnails returns true if image thumbnails should be written to disk after generating on the fly.
func (*Instance) SetConfigFile ¶
func (*Instance) SetCustomLocales ¶ added in v0.17.0
func (*Instance) SetDefault ¶ added in v0.17.0
func (*Instance) SetInitialConfig ¶
SetInitialConfig fills in missing required config fields
func (*Instance) SetInitialMemoryConfig ¶
SetInitialMemoryConfig fills in missing required config fields without writing the configuration
func (*Instance) SetPassword ¶
func (*Instance) SetUIConfiguration ¶ added in v0.16.0
func (*Instance) ValidateCredentials ¶
func (*Instance) ValidateStashBoxes ¶
func (i *Instance) ValidateStashBoxes(boxes []*StashBoxInput) error
type MissingConfigError ¶
type MissingConfigError struct {
// contains filtered or unexported fields
}
func (MissingConfigError) Error ¶
func (e MissingConfigError) Error() string
type ScanMetadataOptions ¶ added in v0.17.0
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 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 StashBoxError ¶
type StashBoxError struct {
// contains filtered or unexported fields
}
StashBoxError represents configuration errors of Stash-Box
func (*StashBoxError) Error ¶
func (s *StashBoxError) Error() string
type StashBoxInput ¶ added in v0.17.0
type StashConfig ¶ added in v0.17.0
type StashConfigInput ¶ added in v0.17.0
type StashConfigInput struct { Path string `json:"path"` ExcludeVideo bool `json:"excludeVideo"` ExcludeImage bool `json:"excludeImage"` }
Stash configuration details