From f162d32da098aa55f6de2367142faa166edb7c08 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 6 Jun 2023 15:59:51 +0200 Subject: Support lazy download thumbnails --- server/models/video/sql/video/shared/video-table-attributes.ts | 1 + server/models/video/thumbnail.ts | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'server/models/video') diff --git a/server/models/video/sql/video/shared/video-table-attributes.ts b/server/models/video/sql/video/shared/video-table-attributes.ts index 34967cd20..e0fa9d7c1 100644 --- a/server/models/video/sql/video/shared/video-table-attributes.ts +++ b/server/models/video/sql/video/shared/video-table-attributes.ts @@ -60,6 +60,7 @@ export class VideoTableAttributes { 'height', 'width', 'fileUrl', + 'onDisk', 'automaticallyGenerated', 'videoId', 'videoPlaylistId', diff --git a/server/models/video/thumbnail.ts b/server/models/video/thumbnail.ts index a4ac581e5..2a1f6a7b4 100644 --- a/server/models/video/thumbnail.ts +++ b/server/models/video/thumbnail.ts @@ -69,6 +69,10 @@ export class ThumbnailModel extends Model @Column automaticallyGenerated: boolean + @AllowNull(false) + @Column + onDisk: boolean + @ForeignKey(() => VideoModel) @Column videoId: number -- cgit v1.2.3