mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
* Don't load image files by default * Don't load gallery files by default * Don't load scene files by default * Retry locked transactions forever * Don't show release notes if config not loaded * Don't translate path slashes in export
13 lines
198 B
Go
13 lines
198 B
Go
package image
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/stashapp/stash/pkg/models"
|
|
_ "golang.org/x/image/webp"
|
|
)
|
|
|
|
func IsCover(img *models.Image) bool {
|
|
return strings.HasSuffix(img.Path, "cover.jpg")
|
|
}
|