mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Calculate and print job totals for scan and generate tasks (#188)
* Calculate and print job totals for scan and generate tasks * Cosmetic print fixes
This commit is contained in:
@@ -49,3 +49,18 @@ func (t *GenerateTranscodeTask) Start(wg *sync.WaitGroup) {
|
||||
logger.Debugf("[transcode] <%s> created transcode: %s", t.Scene.Checksum, outputPath)
|
||||
return
|
||||
}
|
||||
|
||||
func (t *GenerateTranscodeTask) isTranscodeNeeded() bool {
|
||||
|
||||
videoCodec := t.Scene.VideoCodec.String
|
||||
hasTranscode, _ := HasTranscode(&t.Scene)
|
||||
|
||||
if ffmpeg.IsValidCodec(videoCodec) {
|
||||
return false
|
||||
}
|
||||
|
||||
if hasTranscode {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user