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.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 3db6549ae..2bfa704ec 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1735,6 +1735,7 @@ export class VideoModel extends Model {
1735 } 1735 }
1736 1736
1737 getQualityFileBy<T extends MVideoWithFile> (this: T, fun: (files: MVideoFile[], it: (file: MVideoFile) => number) => MVideoFile) { 1737 getQualityFileBy<T extends MVideoWithFile> (this: T, fun: (files: MVideoFile[], it: (file: MVideoFile) => number) => MVideoFile) {
1738 // We first transcode to WebTorrent format, so try this array first
1738 if (Array.isArray(this.VideoFiles) && this.VideoFiles.length !== 0) { 1739 if (Array.isArray(this.VideoFiles) && this.VideoFiles.length !== 0) {
1739 const file = fun(this.VideoFiles, file => file.resolution) 1740 const file = fun(this.VideoFiles, file => file.resolution)
1740 1741