mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix thumbnail generation (#2561)
This commit is contained in:
@@ -20,7 +20,7 @@ func (ss *sceneScreenshotter) GenerateScreenshot(ctx context.Context, probeResul
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ss *sceneScreenshotter) GenerateThumbnail(ctx context.Context, probeResult *ffmpeg.VideoFile, hash string) error {
|
func (ss *sceneScreenshotter) GenerateThumbnail(ctx context.Context, probeResult *ffmpeg.VideoFile, hash string) error {
|
||||||
return ss.g.Screenshot(ctx, probeResult.Path, hash, probeResult.Width, probeResult.Duration, generate.ScreenshotOptions{})
|
return ss.g.Thumbnail(ctx, probeResult.Path, hash, probeResult.Duration, generate.ScreenshotOptions{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ScanTask) scanScene(ctx context.Context) *models.Scene {
|
func (t *ScanTask) scanScene(ctx context.Context) *models.Scene {
|
||||||
|
|||||||
Reference in New Issue
Block a user