summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/DriveService.ts
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2023-02-12 09:13:47 +0900
committerGitHub <noreply@github.com>2023-02-12 09:13:47 +0900
commitee03ab8d2c06254480e8b78d3c4eab4a78409ad5 (patch)
treea781c4db880b793a2bd6202b48c0b8754515f213 /packages/backend/src/core/DriveService.ts
parentDev Containerの設定を追加 (#9872) (diff)
downloadsharkey-ee03ab8d2c06254480e8b78d3c4eab4a78409ad5.tar.gz
sharkey-ee03ab8d2c06254480e8b78d3c4eab4a78409ad5.tar.bz2
sharkey-ee03ab8d2c06254480e8b78d3c4eab4a78409ad5.zip
enhance(server): videoThumbnailGenerator config (#9845)
* enhance(server): videoThumbnailGenerator config * :v: * fix * 相対url * サムネイルのproxyRemoteFilesは直接プロキシを指定する * メディアプロキシ
Diffstat (limited to 'packages/backend/src/core/DriveService.ts')
-rw-r--r--packages/backend/src/core/DriveService.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/backend/src/core/DriveService.ts b/packages/backend/src/core/DriveService.ts
index 598a457e83..42a430ea75 100644
--- a/packages/backend/src/core/DriveService.ts
+++ b/packages/backend/src/core/DriveService.ts
@@ -250,6 +250,14 @@ export class DriveService {
@bindThis
public async generateAlts(path: string, type: string, generateWeb: boolean) {
if (type.startsWith('video/')) {
+ if (this.config.videoThumbnailGenerator != null) {
+ // videoThumbnailGeneratorが指定されていたら動画サムネイル生成はスキップ
+ return {
+ webpublic: null,
+ thumbnail: null,
+ }
+ }
+
try {
const thumbnail = await this.videoProcessingService.generateVideoThumbnail(path);
return {