From 00e98a9c0948eac60645ef0986db2a63b4092361 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 5 May 2022 12:11:10 +1000 Subject: [PATCH] Fix thumbnail generation (#2561) --- internal/manager/task_scan_scene.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/manager/task_scan_scene.go b/internal/manager/task_scan_scene.go index ca65d1e42..70c33d5f4 100644 --- a/internal/manager/task_scan_scene.go +++ b/internal/manager/task_scan_scene.go @@ -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 { - 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 {