Fixed incorrect file paths on windows

This commit is contained in:
Stash Dev
2019-02-10 09:33:18 -08:00
parent 8efbfc6d72
commit a5442a87a4
3 changed files with 9 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import (
"github.com/stashapp/stash/models"
"github.com/stashapp/stash/utils"
"os"
"path"
"path/filepath"
"strconv"
"sync"
)
@@ -32,7 +32,7 @@ func (t *GenerateMarkersTask) Start(wg *sync.WaitGroup) {
}
// Make the folder for the scenes markers
markersFolder := path.Join(instance.Paths.Generated.Markers, t.Scene.Checksum)
markersFolder := filepath.Join(instance.Paths.Generated.Markers, t.Scene.Checksum)
_ = utils.EnsureDir(markersFolder)
encoder := ffmpeg.NewEncoder(instance.Paths.FixedPaths.FFMPEG)