Fixed Windows builds after URI structure change
This commit is contained in:
parent
c7984d0743
commit
26933dbe4f
|
@ -146,13 +146,11 @@ func imageDimensions(path string) (*Dimensions, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func preparePath(path string) string {
|
func preparePath(path string) string {
|
||||||
path = MediaPrefix + path
|
|
||||||
|
|
||||||
if runtime.GOOS == "windows" {
|
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 {
|
func appendPath(directory, path string, files *Files, stats *ScanStats, shouldCache bool) error {
|
||||||
|
|
|
@ -17,7 +17,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version string = "0.63.1"
|
Version string = "0.63.2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue