Fix ffmpeg resolution when in current directory (#4899)

* Use absolute path to resolve ffmpeg in config directory
* Pass absolute config path to plugins
This commit is contained in:
WithoutPants
2024-05-30 15:50:27 +10:00
committed by GitHub
parent 2b699fcf95
commit 3b146588c6
4 changed files with 20 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ type PluginSetting struct {
type ServerConfig interface {
GetHost() string
GetPort() int
GetConfigPath() string
GetConfigPathAbs() string
HasTLSConfig() bool
GetPluginsPath() string
GetDisabledPlugins() []string
@@ -249,7 +249,7 @@ func (c Cache) makeServerConnection(ctx context.Context) common.StashServerConne
Host: c.config.GetHost(),
Port: c.config.GetPort(),
SessionCookie: cookie,
Dir: c.config.GetConfigPath(),
Dir: c.config.GetConfigPathAbs(),
}
if c.config.HasTLSConfig() {