aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 720bfd829..343abde44 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1804,6 +1804,10 @@ export class VideoModel extends Model {
1804 return Object.assign(file, { Video: this }) 1804 return Object.assign(file, { Video: this })
1805 } 1805 }
1806 1806
1807 hasWebTorrentFiles () {
1808 return Array.isArray(this.VideoFiles) === true && this.VideoFiles.length !== 0
1809 }
1810
1807 async addAndSaveThumbnail (thumbnail: MThumbnail, transaction: Transaction) { 1811 async addAndSaveThumbnail (thumbnail: MThumbnail, transaction: Transaction) {
1808 thumbnail.videoId = this.id 1812 thumbnail.videoId = this.id
1809 1813