From bc24e6a2942551283d3f93d21a98473f33e76617 Mon Sep 17 00:00:00 2001 From: ShittyKopper Date: Thu, 4 Jan 2024 19:10:20 +0300 Subject: [PATCH] upd: use builtin thumbnail generator if no thumbnail generator is set --- packages/backend/src/core/VideoProcessingService.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/VideoProcessingService.ts b/packages/backend/src/core/VideoProcessingService.ts index ffb757335..e157160b4 100644 --- a/packages/backend/src/core/VideoProcessingService.ts +++ b/packages/backend/src/core/VideoProcessingService.ts @@ -50,7 +50,14 @@ export class VideoProcessingService { @bindThis public getExternalVideoThumbnailUrl(url: string): string | null { - if (this.config.videoThumbnailGenerator == null) return null; + if (this.config.videoThumbnailGenerator == null) { + return appendQuery( + `${this.config.url}/proxy/thumbnail.webp`, + query({ + url, + }), + ); + } return appendQuery( `${this.config.videoThumbnailGenerator}/thumbnail.webp`,