Fixed Windows builds after URI structure change

This commit is contained in:
Seednode 2023-09-10 21:51:58 -05:00
parent c7984d0743
commit 26933dbe4f
2 changed files with 3 additions and 5 deletions

View File

@ -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 {

View File

@ -17,7 +17,7 @@ var (
)
const (
Version string = "0.63.1"
Version string = "0.63.2"
)
var (