mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix json filename generation (#2887)
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"os"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/stashapp/stash/pkg/fsutil"
|
||||
"github.com/stashapp/stash/pkg/models"
|
||||
"github.com/stashapp/stash/pkg/models/json"
|
||||
)
|
||||
@@ -58,7 +59,7 @@ type Scene struct {
|
||||
}
|
||||
|
||||
func (s Scene) Filename(basename string, hash string) string {
|
||||
ret := s.Title
|
||||
ret := fsutil.SanitiseBasename(s.Title)
|
||||
if ret == "" {
|
||||
ret = basename
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user