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 (