Fix thumbnail generation (#2561)

This commit is contained in:
WithoutPants
2022-05-05 12:11:10 +10:00
committed by GitHub
parent d77f47824c
commit 00e98a9c09

View File

@@ -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 {