mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34: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/json"
|
||||
)
|
||||
|
||||
@@ -23,7 +24,7 @@ type Image struct {
|
||||
}
|
||||
|
||||
func (s Image) 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