mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Fix image clip webm not being cleaned (#4657)
This commit is contained in:
@@ -652,9 +652,13 @@ func (j *CleanGeneratedJob) getImagesWithHash(ctx context.Context, checksum stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (j *CleanGeneratedJob) getThumbnailFileHash(basename string) (string, error) {
|
func (j *CleanGeneratedJob) getThumbnailFileHash(basename string) (string, error) {
|
||||||
var hash string
|
var (
|
||||||
var width int
|
hash string
|
||||||
_, err := fmt.Sscanf(basename, "%32x_%d.jpg", &hash, &width)
|
width int
|
||||||
|
ext string
|
||||||
|
)
|
||||||
|
// include the extension - which could be jpg/webp
|
||||||
|
_, err := fmt.Sscanf(basename, "%32x_%d.%s", &hash, &width, &ext)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user