diff options
| author | Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> | 2022-11-25 01:21:03 +0000 |
|---|---|---|
| committer | James Mills <james@mills.io> | 2022-11-25 01:21:03 +0000 |
| commit | a2cc622bc9028e3fabf6ca8d662c8ab4a327cdf7 (patch) | |
| tree | e3bf7ce3f09b2143f40ffb07cb12c551f766d9a7 /app | |
| parent | efa00d153400cae15c7a4dbc0058f66157307941 (diff) | |
Normalize library path before adding and improve error logging (#38)
I hope this PR closes #9
Co-authored-by: Heinrich Langos <gumbo2000@noreply@mills.io>
Reviewed-on: https://git.mills.io/prologic/tube/pulls/38
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Diffstat (limited to 'app')
| -rw-r--r-- | app/app.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -146,6 +146,7 @@ func NewApp(cfg *Config) (*App, error) { // Run imports the library and starts server. func (a *App) Run() error { for _, pc := range a.Config.Library { + pc.Path = filepath.Clean(pc.Path) p := &media.Path{ Path: pc.Path, Prefix: pc.Prefix, |
