mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Changes to Default Performer Images (for Accessibility) (#1489)
* Changes to support custom URL paths * Refactor image resolver code * Initialise box files at startup * Update packr Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -120,6 +120,7 @@ var defaultMenuItems = []string{"scenes", "images", "movies", "markers", "galler
|
||||
|
||||
const SoundOnPreview = "sound_on_preview"
|
||||
const WallShowTitle = "wall_show_title"
|
||||
const CustomPerformerImageLocation = "custom_performer_image_location"
|
||||
const MaximumLoopDuration = "maximum_loop_duration"
|
||||
const AutostartVideo = "autostart_video"
|
||||
const ShowStudioAsText = "show_studio_as_text"
|
||||
@@ -585,6 +586,12 @@ func (i *Instance) GetWallShowTitle() bool {
|
||||
return viper.GetBool(WallShowTitle)
|
||||
}
|
||||
|
||||
func (i *Instance) GetCustomPerformerImageLocation() string {
|
||||
// don't set the default, as it causes race condition crashes
|
||||
// viper.SetDefault(CustomPerformerImageLocation, "")
|
||||
return viper.GetString(CustomPerformerImageLocation)
|
||||
}
|
||||
|
||||
func (i *Instance) GetWallPlayback() string {
|
||||
viper.SetDefault(WallPlayback, "video")
|
||||
return viper.GetString(WallPlayback)
|
||||
|
||||
Reference in New Issue
Block a user