mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Detect cover images in subdirectories (#1144)
This commit is contained in:
@@ -246,7 +246,7 @@ func Serve(w http.ResponseWriter, r *http.Request, path string) {
|
||||
|
||||
func IsCover(img *models.Image) bool {
|
||||
_, fn := getFilePath(img.Path)
|
||||
return fn == "cover.jpg"
|
||||
return strings.HasSuffix(fn, "cover.jpg")
|
||||
}
|
||||
|
||||
func GetTitle(s *models.Image) string {
|
||||
|
||||
Reference in New Issue
Block a user