diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 5964526a9..bd4ca63ea 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1937,6 +1937,10 @@ export class VideoModel extends Model<VideoModel> { | |||
1937 | return this.uuid + '.jpg' | 1937 | return this.uuid + '.jpg' |
1938 | } | 1938 | } |
1939 | 1939 | ||
1940 | hasPreview () { | ||
1941 | return !!this.getPreview() | ||
1942 | } | ||
1943 | |||
1940 | getPreview () { | 1944 | getPreview () { |
1941 | if (Array.isArray(this.Thumbnails) === false) return undefined | 1945 | if (Array.isArray(this.Thumbnails) === false) return undefined |
1942 | 1946 | ||