mirror of https://github.com/stashapp/stash.git
Fixes
* Added date to release body * Added AVI to the scan task * Fixed index out of bounds when generating sprites
This commit is contained in:
parent
3b83371f84
commit
e05d187a77
|
@ -23,6 +23,7 @@ before_deploy:
|
|||
- sh ./scripts/cross-compile.sh
|
||||
- git tag -f v0.0.0-alpha
|
||||
- git push -f --tags
|
||||
- export RELEASE_DATE=$(date +'%Y-%m-%d %H:%M:%S %Z')
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
|
@ -33,6 +34,7 @@ deploy:
|
|||
- dist/stash-linux
|
||||
skip_cleanup: true
|
||||
overwrite: true
|
||||
body: ${RELEASE_DATE}
|
||||
on:
|
||||
repo: stashapp/stash
|
||||
branch: master
|
||||
|
|
|
@ -90,6 +90,9 @@ func (g *SpriteGenerator) generateSpriteImage(encoder *ffmpeg.Encoder) error {
|
|||
images = append(images, img)
|
||||
}
|
||||
|
||||
if len(images) == 0 {
|
||||
return fmt.Errorf("images slice is empty, failed to generate sprite images for %s", g.Info.VideoFile.Path)
|
||||
}
|
||||
width := images[0].Bounds().Size().X
|
||||
height := images[0].Bounds().Size().Y
|
||||
canvasWidth := width * g.Columns
|
||||
|
|
|
@ -21,7 +21,7 @@ func (s *singleton) Scan() {
|
|||
|
||||
var results []string
|
||||
for _, path := range config.GetStashPaths() {
|
||||
globPath := filepath.Join(path, "**/*.{zip,m4v,mp4,mov,wmv}")
|
||||
globPath := filepath.Join(path, "**/*.{zip,m4v,mp4,mov,wmv,avi}")
|
||||
globResults, _ := doublestar.Glob(globPath)
|
||||
results = append(results, globResults...)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue