From 26933dbe4fac81cec53d883c4172058726f6d228 Mon Sep 17 00:00:00 2001 From: Seednode Date: Sun, 10 Sep 2023 21:51:58 -0500 Subject: [PATCH] Fixed Windows builds after URI structure change --- cmd/files.go | 6 ++---- cmd/root.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/files.go b/cmd/files.go index e5ce4c3..7bf0630 100644 --- a/cmd/files.go +++ b/cmd/files.go @@ -146,13 +146,11 @@ func imageDimensions(path string) (*Dimensions, error) { } func preparePath(path string) string { - path = MediaPrefix + path - if runtime.GOOS == "windows" { - path = fmt.Sprintf("/%s", filepath.ToSlash(path)) + return fmt.Sprintf("%s/%s", MediaPrefix, filepath.ToSlash(path)) } - return path + return MediaPrefix + path } func appendPath(directory, path string, files *Files, stats *ScanStats, shouldCache bool) error { diff --git a/cmd/root.go b/cmd/root.go index d9826db..ac44218 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ var ( ) const ( - Version string = "0.63.1" + Version string = "0.63.2" ) var (