Parallel scanning/generation, and combined scanning/preview/sprite (#820)

* Implement parallel scanning and generation, and combined scanning/preview/sprite generation.
* Added UI component for preview/sprite generation during scan, and configurable number of parallel tasks.
* Add v050 changelog entry
This commit is contained in:
JoeSmithStarkers
2020-11-25 12:45:10 +11:00
committed by GitHub
parent 502e9297ad
commit e3eb550a7d
25 changed files with 445 additions and 73 deletions

View File

@@ -3,7 +3,8 @@ package manager
import (
"path/filepath"
"strconv"
"sync"
"github.com/remeh/sizedwaitgroup"
"github.com/stashapp/stash/pkg/ffmpeg"
"github.com/stashapp/stash/pkg/logger"
@@ -18,7 +19,7 @@ type GenerateMarkersTask struct {
fileNamingAlgorithm models.HashAlgorithm
}
func (t *GenerateMarkersTask) Start(wg *sync.WaitGroup) {
func (t *GenerateMarkersTask) Start(wg *sizedwaitgroup.SizedWaitGroup) {
defer wg.Done()
if t.Scene != nil {